Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 686aab6

Browse files
authored
Merge pull request #24443 from dstansby/xaxis-trans-param-doc
Add valid values to `get_*axis_transform` docstring
2 parents d95edc4 + 0564569 commit 686aab6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,10 @@ def get_xaxis_transform(self, which='grid'):
926926
`~matplotlib.axis.Axis` class, and is meant to be
927927
overridden by new kinds of projections that may need to
928928
place axis elements in different locations.
929+
930+
Parameters
931+
----------
932+
which : {'grid', 'tick1', 'tick2'}
929933
"""
930934
if which == 'grid':
931935
return self._xaxis_transform
@@ -1002,6 +1006,10 @@ def get_yaxis_transform(self, which='grid'):
10021006
`~matplotlib.axis.Axis` class, and is meant to be
10031007
overridden by new kinds of projections that may need to
10041008
place axis elements in different locations.
1009+
1010+
Parameters
1011+
----------
1012+
which : {'grid', 'tick1', 'tick2'}
10051013
"""
10061014
if which == 'grid':
10071015
return self._yaxis_transform

0 commit comments

Comments
 (0)