diff --git a/tutorials/colors/colormapnorms.py b/tutorials/colors/colormapnorms.py index dd28fe07f230..7bdeb9c5c893 100644 --- a/tutorials/colors/colormapnorms.py +++ b/tutorials/colors/colormapnorms.py @@ -12,10 +12,10 @@ case). Matplotlib does this mapping in two steps, with a normalization from -[0, 1] occurring first, and then mapping onto the indices in the -colormap. Normalizations are classes defined in the -:func:`matplotlib.colors` module. The default, linear normalization is -:func:`matplotlib.colors.Normalize`. +the input data to [0, 1] occurring first, and then mapping onto the +indices in the colormap. Normalizations are classes defined in the +:func:`matplotlib.colors` module. The default, linear normalization +is :func:`matplotlib.colors.Normalize`. Artists that map data to color pass the arguments *vmin* and *vmax* to construct a :func:`matplotlib.colors.Normalize` instance, then call it: @@ -41,6 +41,7 @@ :math:`log_{10}`. In the example below, there are two bumps, one much smaller than the other. Using `.colors.LogNorm`, the shape and location of each bump can clearly be seen: + """ import numpy as np import matplotlib.pyplot as plt