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 1515class _BoundRendererArtist :
1616 """
1717 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
1919 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.
2121 """
2222 def __init__ (
2323 self ,
@@ -146,8 +146,8 @@ class __ViewType:
146146def view_wrapper (axes_class : Type [Axes ]) -> Type [Axes ]:
147147 """
148148 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.
151151
152152 Parameters
153153 ----------
@@ -160,6 +160,7 @@ def view_wrapper(axes_class: Type[Axes]) -> Type[Axes]:
160160 The view axes wrapper for a given axes class, capable of displaying
161161 another axes contents...
162162 """
163+ # If the passed class is a view, simply return it.
163164 if (issubclass (axes_class , Axes ) and issubclass (axes_class , __ViewType )):
164165 return axes_class
165166
You can’t perform that action at this time.
0 commit comments