8000 Backport PR #10554 on branch v2.2.x by lumberbot-app[bot] · Pull Request #10601 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Backport PR #10554 on branch v2.2.x #10601

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

Merged
merged 1 commit into from
Feb 25, 2018
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/2018-02-21-AL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
``Axes3D.get_xlim``, ``get_ylim`` and ``get_zlim`` now return a tuple
`````````````````````````````````````````````````````````````````````

They previously returned an array. Returning a tuple is consistent with the
behavior for 2D axes.
6 changes: 3 additions & 3 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False, **kw):
set_zlim = set_zlim3d

def get_xlim3d(self):
return self.xy_viewLim.intervalx
return tuple(self.xy_viewLim.intervalx)
get_xlim3d.__doc__ = maxes.Axes.get_xlim.__doc__
get_xlim = get_xlim3d
if get_xlim.__doc__ is not None:
Expand All @@ -774,7 +774,7 @@ def get_xlim3d(self):
"""

def get_ylim3d(self):
return self.xy_viewLim.intervaly
return tuple(self.xy_viewLim.intervaly)
get_ylim3d.__doc__ = maxes.Axes.get_ylim.__doc__
get_ylim = get_ylim3d
if get_ylim.__doc__ is not None:
Expand All @@ -785,7 +785,7 @@ def get_ylim3d(self):

def get_zlim3d(self):
'''Get 3D z limits.'''
return self.zz_viewLim.intervalx
return tuple(self.zz_viewLim.intervalx)
get_zlim = get_zlim3d

def get_zscale(self):
Expand Down
0