Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 10070f4

Browse filesBrowse files
authored
Merge pull request #9511 from matplotlib/auto-backport-of-pr-9506
Backport PR #9506 on branch v2.1.0-doc
2 parents 8ed0f15 + 7f1945e commit 10070f4
Copy full SHA for 10070f4

File tree

Expand file treeCollapse file tree

1 file changed

+25
-21
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+25
-21
lines changed

‎tutorials/advanced/transforms_tutorial.py

Copy file name to clipboardExpand all lines: tutorials/advanced/transforms_tutorial.py
+25-21Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,31 @@
1818
``ax`` is a :class:`~matplotlib.axes.Axes` instance, and ``fig`` is a
1919
:class:`~matplotlib.figure.Figure` instance.
2020
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+
+-----------+-----------------------------+-----------------------------------+
4246
4347
All of the transformation objects in the table above take inputs in
4448
their coordinate system, and transform the input to the `display`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.