|
37 | 37 | cells below those that create the plot will change the plot - it is a |
38 | 38 | live object in memory. |
39 | 39 |
|
40 | | -This tutorial will use matplotlib's imperative-style plotting |
| 40 | +This tutorial will use Matplotlib's imperative-style plotting |
41 | 41 | interface, pyplot. This interface maintains global state, and is very |
42 | 42 | useful for quickly and easily experimenting with various plot |
43 | 43 | settings. The alternative is the object-oriented interface, which is also |
|
55 | 55 | # .. _importing_data: |
56 | 56 | # |
57 | 57 | # Importing image data into Numpy arrays |
58 | | -# =============================================== |
| 58 | +# ====================================== |
59 | 59 | # |
60 | | -# Loading image data is supported by the `Pillow |
61 | | -# <https://pillow.readthedocs.io/en/latest/>`_ library. Natively, Matplotlib |
62 | | -# only supports PNG images. The commands shown below fall back on Pillow if |
63 | | -# the native read fails. |
| 60 | +# Matplotlib relies on the Pillow_ library to load image data. |
64 | 61 | # |
65 | | -# The image used in this example is a PNG file, but keep that Pillow |
66 | | -# requirement in mind for your own data. |
| 62 | +# .. _Pillow: https://pillow.readthedocs.io/en/latest/ |
67 | 63 | # |
68 | 64 | # Here's the image we're going to play with: |
69 | 65 | # |
|
98 | 94 | # similar. An RGBA (where A is alpha, or transparency), has 4 values |
99 | 95 | # per inner list, and a simple luminance image just has one value (and |
100 | 96 | # is thus only a 2-D array, not a 3-D array). For RGB and RGBA images, |
101 | | -# matplotlib supports float32 and uint8 data types. For grayscale, |
102 | | -# matplotlib supports only float32. If your array data does not meet |
| 97 | +# Matplotlib supports float32 and uint8 data types. For grayscale, |
| 98 | +# Matplotlib supports only float32. If your array data does not meet |
103 | 99 | # one of these descriptions, you need to rescale it. |
104 | 100 | # |
105 | 101 | # .. _plotting_data: |
|
0 commit comments