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. Start by importing the necessary modules.

import astropy.units as u
import matplotlib.pyplot as plt

from import AIA_171_IMAGE

Create a

smap =

Plot the Map without a frame.

# Setup a frameless figure and an axes which spans the whole canvas.
figure = plt.figure(frameon=False)
axes = plt.Axes(figure, [0., 0., 1., 1.])

# Disable the axis and add them to the figure.

# Plot the map without any annotations
# This might raise a warning about the axes being wrong but we can ignore this
# as we are not plotting any axes.
im = smap.plot(axes=axes, annotate=False, clip_interval=(1, 99.99)*u.percent)

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

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

Gallery generated by Sphinx-Gallery