Hello John,
When you do peek(basic_plot=True) those warnings should not be issued, it doesn't matter that the plot axes might be incorrect if there are no plot axes! I have made a fix here: https://github.com/sunpy/sunpy/pull/1930 which will be included in the next bug fix release (probably later this week) but until then I suggest you just ignore them.
Thanks for the heads up.
Stuart
--
You received this message because you are subscribed to the Google Groups "SunPy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sunpy+un...@googlegroups.com.
To post to this group, send email to su...@googlegroups.com.
Visit this group at https://groups.google.com/group/sunpy.
For more options, visit https://groups.google.com/d/optout.
Hi,
The following code snippet manually turns off all the WCSAxes labelling and grids that are added by default when doing map.plot().
import matplotlib.pyplot as plt
import sunpy.map
from sunpy.data.sample import AIA_171_ROLL_IMAGE
m = sunpy.map.Map(AIA_171_ROLL_IMAGE)
figure = plt.figure()
axes = figure.add_axes([0,0,1,1], projection=m.wcs)
axes.set_axis_off()
im = m.plot(axes=axes)
rect = m.draw_rectangle([100, 200]*u.arcsec,
400*u.arcsec, 200*u.arcsec)
#turn off everything!
Tx, Ty = axes.coords
Tx.set_ticks_visible(False)
Ty.set_ticks_visible(False)
Tx.set_ticklabel_visible(False)
Ty.set_ticklabel_visible(False)
Tx.set_axislabel('')
Ty.set_axislabel('')
axes.coords.grid(False)
It generates the attached plot using the sample data.
Hope that helps,
Stuart
Just to clarify why I want to use the plot() command to plot the image. I also want to be able to add a box to the image based on a set of coordinates that may have to be rotated to the time of the AIA image.