// the final request for a polar axes will end up creating one
// with a spec of 111.
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
// Changing the projection will throw a warning
assert fig.gca(polar=True) is not ax3
assert len(w) == 1
assert fig.gca(polar=True) is not ax2
assert fig.gca().get_geometry() == (1, 1, 1)
fig.sca(ax1)
After Change
// the final request for a polar axes will end up creating one
// with a spec of 111.
with pytest.warns(UserWarning):
// Changing the projection will throw a warning
assert fig.gca(polar=True) is not ax3
assert fig.gca(polar=True) is not ax2