Skip to content

Fix pyplot.axis(ax) when ax is in other figure. #8043

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 4 commits into from
Feb 11, 2017
Merged
Changes from 1 commit
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
Prev Previous commit
Move pyplot.axes test to a dedicated function.
  • Loading branch information
pavoljuhas committed Feb 10, 2017
commit 2fa64ad6623df39f42c2c5ee263a2062ab0e10ba
2 changes: 2 additions & 0 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,8 @@ def _as_mpl_axes(self):
'Expected a PolarAxesSubplot, got %s' % type(ax)
plt.close()


def test_pyplot_axes():
# test focusing of Axes in other Figure
fig1, ax1 = plt.subplots()
fig2, ax2 = plt.subplots()
Expand Down