3
3
===================
4
4
5
5
Widgets that are designed to work for any of the GUI backends.
6
- All of these widgets require you to predefine a `matplotlib .axes.Axes`
6
+ All of these widgets require you to predefine an `~ .axes.Axes`
7
7
instance and pass that as the first parameter. Matplotlib doesn't try to
8
8
be too smart with respect to layout -- you will have to figure out how
9
9
wide and tall you want your Axes to be to accommodate your widget.
@@ -170,9 +170,9 @@ class Button(AxesWidget):
170
170
Attributes
171
171
----------
172
172
ax
173
- The `matplotlib .axes.Axes` the button renders into.
173
+ The `~ .axes.Axes` the button renders into.
174
174
label
175
- A `matplotlib.text .Text` instance.
175
+ A `.Text` instance.
176
176
color
177
177
The color of the button when not hovering.
178
178
hovercolor
@@ -190,7 +190,7 @@ def __init__(self, ax, label, image=None,
190
190
The button text.
191
191
image : array-like or PIL Image
192
192
The image to place in the button, if not *None*. The parameter is
193
- directly forwarded to `~matplotlib .axes.Axes.imshow`.
193
+ directly forwarded to `~.axes.Axes.imshow`.
194
194
color : color
195
195
The color of the button when not activated.
196
196
hovercolor : color
@@ -1007,9 +1007,9 @@ class CheckButtons(AxesWidget):
1007
1007
ax : `~matplotlib.axes.Axes`
1008
1008
The parent Axes for the widget.
1009
1009
1010
- labels : list of `.Text`
1010
+ labels : list of `~matplotlib.text .Text`
1011
1011
1012
- rectangles : list of `.Rectangle`
1012
+ rectangles : list of `~matplotlib.patches .Rectangle`
1013
1013
1014
1014
lines : list of (`.Line2D`, `.Line2D`) pairs
1015
1015
List of lines for the x's in the checkboxes. These lines exist for
@@ -1019,7 +1019,7 @@ class CheckButtons(AxesWidget):
1019
1019
def __init__ (self , ax , labels , actives = None , * , useblit = True ,
1020
1020
label_props = None , frame_props = None , check_props = None ):
1021
1021
"""
1022
- Add check buttons to `matplotlib .axes.Axes` instance *ax*.
1022
+ Add check buttons to `~ .axes.Axes` instance *ax*.
1023
1023
1024
1024
Parameters
1025
1025
----------
@@ -1876,16 +1876,16 @@ def circles(self):
1876
1876
1877
1877
class SubplotTool (Widget ):
1878
1878
"""
1879
- A tool to adjust the subplot params of a `matplotlib.figure .Figure`.
1879
+ A tool to adjust the subplot params of a `.Figure`.
1880
1880
"""
1881
1881
1882
1882
def __init__ (self , targetfig , toolfig ):
1883
1883
"""
1884
1884
Parameters
1885
1885
----------
1886
- targetfig : `.Figure`
1886
+ targetfig : `~matplotlib.figure .Figure`
1887
1887
The figure instance to adjust.
1888
- toolfig : `.Figure`
1888
+ toolfig : `~matplotlib.figure .Figure`
1889
1889
The figure instance to embed the subplot tool into.
1890
1890
"""
1891
1891
@@ -2051,7 +2051,7 @@ class MultiCursor(Widget):
2051
2051
canvas : object
2052
2052
This parameter is entirely unused and only kept for back-compatibility.
2053
2053
2054
- axes : list of `matplotlib.axes.Axes`
2054
+ axes : list of `~ matplotlib.axes.Axes`
2055
2055
The `~.axes.Axes` to attach the cursor to.
2056
2056
2057
2057
useblit : bool, default: True
@@ -2564,7 +2564,7 @@ class SpanSelector(_SelectorWidget):
2564
2564
canvas updates. See the tutorial :ref:`blitting` for details.
2565
2565
2566
2566
props : dict, default: {'facecolor': 'red', 'alpha': 0.5}
2567
- Dictionary of `matplotlib.patches .Patch` properties.
2567
+ Dictionary of `.Patch` properties.
2568
2568
2569
2569
onmove_callback : callable with signature ``func(min: float, max: float)``, optional
2570
2570
Called on mouse move while the span is being selected.
@@ -2578,8 +2578,7 @@ class SpanSelector(_SelectorWidget):
2578
2578
2579
2579
handle_props : dict, default: None
2580
2580
Properties of the handle lines at the edges of the span. Only used
2581
- when *interactive* is True. See `matplotlib.lines.Line2D` for valid
2582
- properties.
2581
+ when *interactive* is True. See `.Line2D` for valid properties.
2583
2582
2584
2583
grab_range : float, default: 10
2585
2584
Distance in pixels within which the interactive tool handles can be activated.
@@ -2951,7 +2950,7 @@ class ToolLineHandles:
2951
2950
direction : {"horizontal", "vertical"}
2952
2951
Direction of handles, either 'vertical' or 'horizontal'
2953
2952
line_props : dict, optional
2954
- Additional line properties. See `matplotlib.lines .Line2D`.
2953
+ Additional line properties. See `.Line2D`.
2955
2954
useblit : bool, default: True
2956
2955
Whether to use blitting for faster drawing (if supported by the
2957
2956
backend). See the tutorial :ref:`blitting`
@@ -3060,9 +3059,9 @@ class ToolHandles:
3060
3059
x, y : 1D arrays
3061
3060
Coordinates of control handles.
3062
3061
marker : str, default: 'o'
3063
- Shape of marker used to display handle. See `matplotlib .pyplot.plot`.
3062
+ Shape of marker used to display handle. See `~ .pyplot.plot`.
3064
3063
marker_props : dict, optional
3065
- Additional marker properties. See `matplotlib.lines .Line2D`.
3064
+ Additional marker properties. See `.Line2D`.
3066
3065
useblit : bool, default: True
3067
3066
Whether to use blitting for faster drawing (if supported by the
3068
3067
backend). See the tutorial :ref:`blitting`
@@ -3147,7 +3146,7 @@ def onselect(eclick: MouseEvent, erelease: MouseEvent)
3147
3146
3148
3147
props : dict, optional
3149
3148
Properties with which the __ARTIST_NAME__ is drawn. See
3150
- `matplotlib.patches .Patch` for valid properties.
3149
+ `.Patch` for valid properties.
3151
3150
Default:
3152
3151
3153
3152
``dict(facecolor='red', edgecolor='black', alpha=0.2, fill=True)``
@@ -3165,7 +3164,7 @@ def onselect(eclick: MouseEvent, erelease: MouseEvent)
3165
3164
3166
3165
handle_props : dict, optional
3167
3166
Properties with which the interactive handles (marker artists) are
3168
- drawn. See the marker arguments in `matplotlib.lines .Line2D` for valid
3167
+ drawn. See the marker arguments in `.Line2D` for valid
3169
3168
properties. Default values are defined in ``mpl.rcParams`` except for
3170
3169
the default value of ``markeredgecolor`` which will be the same as the
3171
3170
``edgecolor`` property in *props*.
@@ -3765,7 +3764,7 @@ def onselect(verts):
3765
3764
backend). See the tutorial :ref:`blitting`
3766
3765
for details.
3767
3766
props : dict, optional
3768
- Properties with which the line is drawn, see `matplotlib.lines .Line2D`
3767
+ Properties with which the line is drawn, see `.Line2D`
3769
3768
for valid properties. Default values are defined in ``mpl.rcParams``.
3770
3769
button : `.MouseButton` or list of `.MouseButton`, optional
3771
3770
The mouse buttons used for rectangle selection. Default is ``None``,
@@ -3842,15 +3841,14 @@ class PolygonSelector(_SelectorWidget):
3842
3841
for details.
3843
3842
3844
3843
props : dict, optional
3845
- Properties with which the line is drawn, see `matplotlib.lines.Line2D`
3846
- for valid properties.
3844
+ Properties with which the line is drawn, see `.Line2D` for valid properties.
3847
3845
Default::
3848
3846
3849
3847
dict(color='k', linestyle='-', linewidth=2, alpha=0.5)
3850
3848
3851
3849
handle_props : dict, optional
3852
3850
Artist properties for the markers drawn at the vertices of the polygon.
3853
- See the marker arguments in `matplotlib.lines .Line2D` for valid
3851
+ See the marker arguments in `.Line2D` for valid
3854
3852
properties. Default values are defined in ``mpl.rcParams`` except for
3855
3853
the default value of ``markeredgecolor`` which will be the same as the
3856
3854
``color`` property in *props*.
0 commit comments