From cb0a7429f82cab8babddf0af9deff2c99dc71482 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Thu, 3 Oct 2019 09:14:29 +0200 Subject: [PATCH] Backport PR #15364: DOC: fix typo in colormap docs --- tutorials/colors/colormapnorms.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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