Editing the colormap and normalization of a Map#

How to edit the display of a map.

import matplotlib
import matplotlib.colors as colors
import matplotlib.pyplot as plt

import sunpy.map
from sunpy.data.sample import AIA_171_IMAGE

We start with the sample data.

All plot settings for a map are stored in the plot_settings attribute. How a Map is displayed is determined by its colormap, which sets the colors , and the normalization, which sets how data values are translated to colors. Let’s replace the colormap and normalization.

To see all of the colormaps sunpy provides see sunpy.visualization.colormaps. Matplotlib provides a number of colormaps and normalizations. For more advanced normalizations see astropy.visualization.

AIA $171 \; \mathrm{\mathring{A}}$ 2011-06-07 06:33:02

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

🏷 Tags: Map, AIA, Visualization

Gallery generated by Sphinx-Gallery