|
12 | 12 | case).
|
13 | 13 |
|
14 | 14 | 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`. |
19 | 19 |
|
20 | 20 | Artists that map data to color pass the arguments *vmin* and *vmax* to
|
21 | 21 | construct a :func:`matplotlib.colors.Normalize` instance, then call it:
|
|
35 | 35 | Logarithmic
|
36 | 36 | -----------
|
37 | 37 |
|
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 | +
|
45 | 45 | """
|
46 | 46 | import numpy as np
|
47 | 47 | import matplotlib.pyplot as plt
|
|
0 commit comments