- #1
dcc
- 1
- 0
- Homework Statement
- I'm making an image from ALMA data for a presentation. My moment 0 image (fits file) is very faint when coded into python. How do I get it to be brighter than the background so it's more visible?
I've tried the vmin, vmax within the plt.imshow() with no change and also so many other things I can't even recall anymore.
- Relevant Equations
- image_data = fits.getdata(alma_image, ext=0)
plt.figure()
plt.imshow(image_data, cmap='viridis')
plt.xlim(540,640)
plt.ylim(540,640)
plt.colorbar(extend='both')
plt.clim(0, 1)
plt.show()
image_data = fits.getdata(alma_image, ext=0)
plt.figure()
plt.imshow(image_data, cmap='viridis', vmin=-4, vmax=4)
plt.xlim(540,640)
plt.ylim(540,640)
plt.colorbar(extend='both')
plt.clim(0, 1)
plt.show()
plt.figure()
plt.imshow(image_data, cmap='viridis', vmin=-4, vmax=4)
plt.xlim(540,640)
plt.ylim(540,640)
plt.colorbar(extend='both')
plt.clim(0, 1)
plt.show()