|
2 | 2 | *origin* and *extent* in `~.Axes.imshow` |
3 | 3 | ======================================== |
4 | 4 |
|
5 | | -:meth:`~.Axes.imshow` allows you to render an image (either a 2D array |
6 | | -which will be color-mapped (based on *norm* and *cmap*) or a 3D RGB(A) |
7 | | -array which will be used as-is) to a rectangular region in data space. |
8 | | -The orientation of the image in the final rendering is controlled by |
9 | | -the *origin* and *extent* kwargs (and attributes on the resulting |
10 | | -`.AxesImage` instance) and the data limits of the axes. |
11 | | -
|
12 | | -The *extent* kwarg controls the bounding box in data coordinates that |
13 | | -the image will fill specified as ``(left, right, bottom, top)`` in |
14 | | -**data coordinates**, the *origin* kwarg controls how the image fills |
15 | | -that bounding box, and the orientation in the final rendered image is |
16 | | -also affected by the axes limits. |
| 5 | +:meth:`~.Axes.imshow` allows you to render an image (either a 2D array which |
| 6 | +will be color-mapped (based on *norm* and *cmap*) or a 3D RGB(A) array which |
| 7 | +will be used as-is) to a rectangular region in data space. The orientation of |
| 8 | +the image in the final rendering is controlled by the *origin* and *extent* |
| 9 | +keyword arguments (and attributes on the resulting `.AxesImage` instance) and |
| 10 | +the data limits of the axes. |
| 11 | +
|
| 12 | +The *extent* keyword arguments controls the bounding box in data coordinates |
| 13 | +that the image will fill specified as ``(left, right, bottom, top)`` in **data |
| 14 | +coordinates**, the *origin* keyword argument controls how the image fills that |
| 15 | +bounding box, and the orientation in the final rendered image is also affected |
| 16 | +by the axes limits. |
17 | 17 |
|
18 | 18 | .. hint:: Most of the code below is used for adding labels and informative |
19 | 19 | text to the plots. The described effects of *origin* and *extent* can be |
|
0 commit comments