quatrope / ProperImage

Proper Image utils for astronomy.
BSD 3-Clause "New" or "Revised" License
26 stars 6 forks source link

`.plot` accessor #33

Closed leliel12 closed 4 years ago

leliel12 commented 4 years ago

Provide a accessor to the most common plot of the image through a plot accesor attribute.

So instead of run (img is a SingleImage instance)

plt.imshow(img)

we can use

img.plot() 
# or
img.plot.imshow()

Another method can be img.plot.background()

martinberoiz commented 4 years ago

Is this assuming img as a SingleImage instance? Sounds reasonable thing to have.