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 65d7c97

Browse filesBrowse files
committed
Add xaxis and yaxis attributes to Axes docs
1 parent 773096e commit 65d7c97
Copy full SHA for 65d7c97

File tree

2 files changed

+4
-2
lines changed
Filter options

2 files changed

+4
-2
lines changed

‎doc/api/axes_api.rst

Copy file name to clipboardExpand all lines: doc/api/axes_api.rst
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,8 @@ Axis / limits
274274
:template: autosummary.rst
275275
:nosignatures:
276276

277+
Axes.xaxis
278+
Axes.yaxis
277279
Axes.get_xaxis
278280
Axes.get_yaxis
279281

‎lib/matplotlib/axes/_base.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,10 +827,10 @@ def get_window_extent(self, renderer=None):
827827

828828
def _init_axis(self):
829829
# This is moved out of __init__ because non-separable axes don't use it
830-
self.xaxis = maxis.XAxis(self, clear=False)
830+
self.xaxis = maxis.XAxis(self, clear=False) #: The XAxis instance.
831831
self.spines.bottom.register_axis(self.xaxis)
832832
self.spines.top.register_axis(self.xaxis)
833-
self.yaxis = maxis.YAxis(self, clear=False)
833+
self.yaxis = maxis.YAxis(self, clear=False) #: The YAxis instance.
834834
self.spines.left.register_axis(self.yaxis)
835835
self.spines.right.register_axis(self.yaxis)
836836

0 commit comments

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