Skip to content

Instantly share code, notes, and snippets.

@astrofrog
Created August 30, 2019 12:01
Show Gist options
  • Select an option

  • Save astrofrog/4c0b5218e191df076b873c2774f4863c to your computer and use it in GitHub Desktop.

Select an option

Save astrofrog/4c0b5218e191df076b873c2774f4863c to your computer and use it in GitHub Desktop.
import cmap_kittens
from astropy.io import fits
import matplotlib.pyplot as plt
data = fits.getdata('monalisa.fits')[0]
plt.imshow(data, cmap='kittens', origin='lower')
plt.colorbar()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment