SunPy visualization

sunpy.visualization contains plotting helpers and functions.

sunpy.visualization Package


axis_labels_from_ctype(ctype, unit)

Returns axis labels for the given coordinate type and unit.


A decorator to place on peek() methods to show the figure.

sunpy.visualization.animator Package


ArrayAnimator(data[, image_axes, axis_ranges])

Create a Matplotlib backend independent data explorer.

BaseFuncAnimator(data, slider_functions, …)

Create a Matplotlib backend independent data explorer which allows definition of figure update functions for each slider.

ImageAnimator(data[, image_axes, axis_ranges])

Create a matplotlib backend independent data explorer for 2D images.

ImageAnimatorWCS(data[, wcs, image_axes, …])

Animates N-dimensional data with the associated astropy.wcs.WCS information.

LineAnimator(data[, plot_axis_index, …])

Create a matplotlib backend independent data explorer for 1D plots.

MapSequenceAnimator(mapsequence[, annotate])

Create an interactive viewer for a MapSequence.

Class Inheritance Diagram

Inheritance diagram of sunpy.visualization.animator.base.ArrayAnimator, sunpy.visualization.animator.base.BaseFuncAnimator, sunpy.visualization.animator.image.ImageAnimator, sunpy.visualization.animator.image.ImageAnimatorWCS, sunpy.visualization.animator.line.LineAnimator, sunpy.visualization.animator.mapsequenceanimator.MapSequenceAnimator

sunpy.visualization.wcsaxes_compat Module

This module provides functions to make WCSAxes work in SunPy.



Tests a matplotlib.axes.Axes object to see if it is an instance of WCSAxes.

gca_wcs(wcs[, fig, slices])

Get the current axes, and return a WCSAxes if possible.


Get the transformation to world coordinates.


Apply some default WCSAxes grid formatting.

wcsaxes_heliographic_overlay(axes[, …])

Create a heliographic overlay using WCSAxes.