Skip to content

Commit 9050d94

Browse files
authored
Merge pull request #15370 from timhoffm/auto-backport-of-pr-15364-on-v3.1.1-doc
Backport PR #15364 on branch v3.1.1-doc
2 parents 9cdcf1c + 510314e commit 9050d94

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tutorials/colors/colormapnorms.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
case).
1313
1414
Matplotlib does this mapping in two steps, with a normalization from
15-
[0,1] occurring first, and then mapping onto the indices in the
16-
colormap. Normalizations are classes defined in the
17-
:func:`matplotlib.colors` module. The default, linear normalization is
18-
:func:`matplotlib.colors.Normalize`.
15+
the input data to [0, 1] occurring first, and then mapping onto the
16+
indices in the colormap. Normalizations are classes defined in the
17+
:func:`matplotlib.colors` module. The default, linear normalization
18+
is :func:`matplotlib.colors.Normalize`.
1919
2020
Artists that map data to color pass the arguments *vmin* and *vmax* to
2121
construct a :func:`matplotlib.colors.Normalize` instance, then call it:
@@ -35,13 +35,13 @@
3535
Logarithmic
3636
-----------
3737
38-
One of the most common transformations is to plot data by taking
39-
its logarithm (to the base-10). This transformation is useful to
40-
display changes across disparate scales. Using :func:`colors.LogNorm`
41-
normalizes the data via :math:`log_{10}`. In the example below,
42-
there are two bumps, one much smaller than the other. Using
43-
:func:`colors.LogNorm`, the shape and location of each bump can clearly
44-
be seen:
38+
One of the most common transformations is to plot data by taking its logarithm
39+
(to the base-10). This transformation is useful to display changes across
40+
disparate scales. Using `.colors.LogNorm` normalizes the data via
41+
:math:`log_{10}`. In the example below, there are two bumps, one much smaller
42+
than the other. Using `.colors.LogNorm`, the shape and location of each bump
43+
can clearly be seen:
44+
4545
"""
4646
import numpy as np
4747
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)