8000 Better document Axes.transData and other transXYZ attributes by AnanasClassic · Pull Request #25922 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Better document Axes.transData and other transXYZ attributes #25922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8000
2 changes: 2 additions & 0 deletions doc/api/axes_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ non-rectilinear Axes.
Axes.get_yaxis_text1_transform
Axes.get_yaxis_text2_transform

Axes.transData


Other
=====
Expand Down
6 changes: 6 additions & 0 deletions lib/matplotlib/axes/_base.py
B049
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,12 @@ class _AxesBase(martist.Artist):

_subclass_uses_cla = False

transData = None # Transform object
"""
a transformation object that converts data coordinates into a
coordinate system used to display data on graph axes
"""

@property
def _axis_map(self):
"""A mapping of axis names, e.g. 'x', to `Axis` instances."""
Expand Down
1 change: 0 additions & 1 deletion lib/matplotlib/axes/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class _AxesBase(martist.Artist):
transAxes: Transform
transScale: Transform
transLimits: Transform
transData: Transform
ignore_existing_data_limits: bool
axison: bool
_projection_init: Any
Expand Down
0