Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/matplotlib/axes/__init__.py: 89%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

9 statements  

1from . import _base 

2from ._axes import Axes # noqa: F401 

3 

4# Backcompat. 

5Subplot = Axes 

6 

7 

8class _SubplotBaseMeta(type): 

9 def __instancecheck__(self, obj): 

10 return (isinstance(obj, _base._AxesBase) 

11 and obj.get_subplotspec() is not None) 

12 

13 

14class SubplotBase(metaclass=_SubplotBaseMeta): 

15 pass 

16 

17 

18def subplot_class_factory(cls): return cls