Skip to content

Commit 0b965ed

Browse files
Fix docs.
1 parent 34c4d9a commit 0b965ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

matplotview/_view_axes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
class _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:
146146
def 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

0 commit comments

Comments
 (0)