We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d7f1f commit 712116bCopy full SHA for 712116b
lib/matplotlib/tests/test_axes.py
@@ -1476,6 +1476,15 @@ def _as_mpl_axes(self):
1476
'Expected a PolarAxesSubplot, got %s' % type(ax)
1477
plt.close()
1478
1479
+ # test focusing of Axes in other Figure
1480
+ fig1, ax1 = subplots()
1481
+ fig2, ax2 = subplots()
1482
+ assert ax1 is plt.axes(ax1)
1483
+ assert ax1 is plt.gca()
1484
+ assert fig1 is plt.gcf()
1485
+ plt.close(fig1)
1486
+ plt.close(fig2)
1487
+
1488
1489
@image_comparison(baseline_images=['log_scales'])
1490
def test_log_scales():
0 commit comments