|
18 | 18 | ``ax`` is a :class:`~matplotlib.axes.Axes` instance, and ``fig`` is a
|
19 | 19 | :class:`~matplotlib.figure.Figure` instance.
|
20 | 20 |
|
21 |
| -=========== ============================= ===================================== |
22 |
| -Coordinates Transformation object Description |
23 |
| -=========== ============================= ===================================== |
24 |
| -"data" ``ax.transData```` The coordinate system for the data, |
25 |
| - controlled by xlim and ylim. |
26 |
| -"axes" ``ax.transAxes`` The coordinate system of the |
27 |
| - `~.Axes`; (0, 0) is bottom left of |
28 |
| - the axes, and (1, 1) is top right of |
29 |
| - the axes. |
30 |
| -"figure" ``fig.transFigure`` The coordinate system of the |
31 |
| - `~.Figure`; (0, 0) is bottom left of |
32 |
| - the figure, and (1, 1) is top right |
33 |
| - of the figure. |
34 |
| -"display" ``None``, or The pixel coordinate system of the |
35 |
| - ``IdentityTransform()`` display; (0, 0) is bottom left of the |
36 |
| - display, and (width, height) is top |
37 |
| - right of the display in pixels. |
38 |
| -"xaxis", ``ax.get_xaxis_transform()``, Blended coordinate systems; use data |
39 |
| -"yaxis" ``ax.get_yaxis_transform()`` coordinates on one of the axis and |
40 |
| - axes coordinates on the other. |
41 |
| -=========== ============================= ===================================== |
| 21 | ++-----------+-----------------------------+-----------------------------------+ |
| 22 | +|Coordinates|Transformation object |Description | |
| 23 | ++-----------+-----------------------------+-----------------------------------+ |
| 24 | +|"data" |``ax.transData`` |The coordinate system for the data,| |
| 25 | +| | |controlled by xlim and ylim. | |
| 26 | ++-----------+-----------------------------+-----------------------------------+ |
| 27 | +|"axes" |``ax.transAxes`` |The coordinate system of the | |
| 28 | +| | |`~.Axes`; (0, 0) is bottom left of | |
| 29 | +| | |the axes, and (1, 1) is top right | |
| 30 | +| | |of the axes. | |
| 31 | ++-----------+-----------------------------+-----------------------------------+ |
| 32 | +|"figure" |``fig.transFigure`` |The coordinate system of the | |
| 33 | +| | |`~.Figure`; (0, 0) is bottom left | |
| 34 | +| | |of the figure, and (1, 1) is top | |
| 35 | +| | |right of the figure. | |
| 36 | ++-----------+-----------------------------+-----------------------------------+ |
| 37 | +|"display" |``None``, or |The pixel coordinate system of the | |
| 38 | +| |``IdentityTransform()`` |display; (0, 0) is bottom left of | |
| 39 | +| | |the display, and (width, height) is| |
| 40 | +| | |top right of the display in pixels.| |
| 41 | ++-----------+-----------------------------+-----------------------------------+ |
| 42 | +|"xaxis", |``ax.get_xaxis_transform()``,|Blended coordinate systems; use | |
| 43 | +|"yaxis" |``ax.get_yaxis_transform()`` |data coordinates on one of the axis| |
| 44 | +| | |and axes coordinates on the other. | |
| 45 | ++-----------+-----------------------------+-----------------------------------+ |
42 | 46 |
|
43 | 47 | All of the transformation objects in the table above take inputs in
|
44 | 48 | their coordinate system, and transform the input to the `display`
|
|
0 commit comments