Plotting a Map without any Axes#

This examples shows you how to plot a Map without any annotations at all, i.e., to save as an image.

import matplotlib.pyplot as plt
import numpy as np

from import AIA_171_IMAGE

Create a sunpy Map from the sample data.

smap =

Plot the Map without a frame. We can setup a frameless figure and an axes which spans the whole canvas.

figure = plt.figure(frameon=False)
ax = plt.axes([0, 0, 1, 1])
# Disable the axis

# Plot the map.
# Since we are not interested in the exact map coordinates,
# we can simply use :meth:`~matplotlib.Axes.imshow`.
norm = smap.plot_settings['norm']
norm.vmin, norm.vmax = np.percentile(, [1, 99.9])
<matplotlib.image.AxesImage object at 0x7f6f4dd4ff70>

At this point you could save the figure with savefig() or show it:

plot frameless image

Total running time of the script: (0 minutes 0.229 seconds)

Gallery generated by Sphinx-Gallery