()
| 3371 | |
| 3372 | |
| 3373 | def test_pyplot_axes(): |
| 3374 | # test focusing of Axes in other Figure |
| 3375 | fig1, ax1 = plt.subplots() |
| 3376 | fig2, ax2 = plt.subplots() |
| 3377 | plt.sca(ax1) |
| 3378 | assert ax1 is plt.gca() |
| 3379 | assert fig1 is plt.gcf() |
| 3380 | plt.close(fig1) |
| 3381 | plt.close(fig2) |
| 3382 | |
| 3383 | |
| 3384 | def test_log_scales(): |