11from typing import Optional , Iterable , Type , Union
22from matplotlib .artist import Artist
33from matplotlib .axes import Axes
4- from matplotview ._view_axes import view_wrapper , ViewSpecification , DEFAULT_RENDER_DEPTH
4+ from matplotlib .transforms import Transform
5+ from matplotview ._view_axes import (
6+ view_wrapper ,
7+ ViewSpecification ,
8+ DEFAULT_RENDER_DEPTH
9+ )
510from matplotview ._docs import dynamic_doc_string , get_interpolation_list_str
611
712
813__all__ = ["view" , "inset_zoom_axes" , "ViewSpecification" ]
914
1015
11- @dynamic_doc_string (render_depth = DEFAULT_RENDER_DEPTH , interp_list = get_interpolation_list_str ())
16+ @dynamic_doc_string (
17+ render_depth = DEFAULT_RENDER_DEPTH ,
18+ interp_list = get_interpolation_list_str ()
19+ )
1220def view (
1321 axes : Axes ,
1422 axes_to_view : Axes ,
@@ -32,15 +40,15 @@ def view(
3240
3341 image_interpolation: string, default of '{image_interpolation}'
3442 The image interpolation method to use when displaying scaled images
35- from the axes being viewed. Defaults to '{image_interpolation}'. Supported options
36- are {interp_list}.
43+ from the axes being viewed. Defaults to '{image_interpolation}'.
44+ Supported options are {interp_list}.
3745
3846 render_depth: optional int, positive, defaults to None
3947 The number of recursive draws allowed for this view, this can happen
4048 if the view is a child of the axes (such as an inset axes) or if
4149 two views point at each other. If None, uses the default render depth
42- of {render_depth}, unless the axes passed is already a view axes, in which case the
43- render depth the view already has will be used.
50+ of {render_depth}, unless the axes passed is already a view axes, in
51+ which case the render depth the view already has will be used.
4452
4553 filter_set: Iterable[Union[Type[Artist], Artist]] or None
4654 An optional filter set, which can be used to select what artists
@@ -65,7 +73,10 @@ def view(
6573 return view_obj
6674
6775
68- @dynamic_doc_string (render_depth = DEFAULT_RENDER_DEPTH , interp_list = get_interpolation_list_str ())
76+ @dynamic_doc_string (
77+ render_depth = DEFAULT_RENDER_DEPTH ,
78+ interp_list = get_interpolation_list_str ()
79+ )
6980def inset_zoom_axes (
7081 axes : Axes ,
7182 bounds : Iterable ,
@@ -74,7 +85,7 @@ def inset_zoom_axes(
7485 render_depth : Optional [int ] = None ,
7586 filter_set : Optional [Iterable [Union [Type [Artist ], Artist ]]] = None ,
7687 scale_lines : bool = True ,
77- transform = None ,
88+ transform : Transform = None ,
7889 zorder : int = 5 ,
7990 ** kwargs
8091) -> Axes :
@@ -100,16 +111,16 @@ def inset_zoom_axes(
100111 parent Axes.
101112
102113 image_interpolation: string
103- Supported options are {interp_list}. The default value is '{image_interpolation}'. This
104- determines the interpolation used when attempting to render a
105- zoomed version of an image.
114+ Supported options are {interp_list}. The default value is
115+ '{image_interpolation}'. This determines the interpolation
116+ used when attempting to render a zoomed version of an image.
106117
107118 render_depth: optional int, positive, defaults to None
108119 The number of recursive draws allowed for this view, this can happen
109120 if the view is a child of the axes (such as an inset axes) or if
110121 two views point at each other. If None, uses the default render depth
111- of {render_depth}, unless the axes passed is already a view axes, in which case the
112- render depth the view already has will be used.
122+ of {render_depth}, unless the axes passed is already a view axes,
123+ in which case the render depth the view already has will be used.
113124
114125 filter_set: Iterable[Union[Type[Artist], Artist]] or None
115126 An optional filter set, which can be used to select what artists
0 commit comments