File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 15
15
class _BoundRendererArtist :
16
16
"""
17
17
Provides a temporary wrapper around a given artist, inheriting its
18
- attributes and values, while overloading draw to use a fixed
18
+ attributes and values, while overriding the draw method to use a fixed
19
19
TransformRenderer. This is used to render an artist to a view without
20
- having to implement a new draw for every Axes type.
20
+ having to implement a new draw method for every Axes type.
21
21
"""
22
22
def __init__ (
23
23
self ,
@@ -146,8 +146,8 @@ class __ViewType:
146
146
def view_wrapper (axes_class : Type [Axes ]) -> Type [Axes ]:
147
147
"""
148
148
Construct a View axes, which subclasses, or wraps a specific Axes subclass.
149
- A View axes can be configured to display the contents of another Axes
150
- within the same Figure.
149
+ A View axes can be configured to display the contents of other Axes
150
+ (plural) within the same Figure.
151
151
152
152
Parameters
153
153
----------
@@ -160,6 +160,7 @@ def view_wrapper(axes_class: Type[Axes]) -> Type[Axes]:
160
160
The view axes wrapper for a given axes class, capable of displaying
161
161
another axes contents...
162
162
"""
163
+ # If the passed class is a view, simply return it.
163
164
if (issubclass (axes_class , Axes ) and issubclass (axes_class , __ViewType )):
164
165
return axes_class
165
166
You can’t perform that action at this time.
0 commit comments