Thanks to visit codestin.com Credit goes to github.com
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 f31d9ad commit f5306b8Copy full SHA for f5306b8
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -5789,3 +5789,21 @@ def test_spines_properbbox_after_zoom():
5789
None, False, False)
5790
bb2 = ax.spines['bottom'].get_window_extent(fig.canvas.get_renderer())
5791
np.testing.assert_allclose(bb.get_points(), bb2.get_points(), rtol=1e-6)
5792
+
5793
5794
+def test_cartopy_backcompat():
5795
+ import matplotlib
5796
+ import matplotlib.axes
5797
+ import matplotlib.axes._subplots
5798
5799
+ class Dummy(matplotlib.axes.Axes):
5800
+ ...
5801
5802
+ class DummySubplot(matplotlib.axes.SubplotBase, Dummy):
5803
+ _axes_class = Dummy
5804
5805
+ matplotlib.axes._subplots._subplot_classes[Dummy] = DummySubplot
5806
5807
+ FactoryDummySubplot = matplotlib.axes.subplot_class_factory(Dummy)
5808
5809
+ assert DummySubplot is FactoryDummySubplot
0 commit comments