Skip to content

Commit 0fb4559

Browse files
committed
More fully qualified argument types
1 parent c0d9c98 commit 0fb4559

26 files changed

+72
-66
lines changed

lib/matplotlib/_constrained_layout.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ def do_constrained_layout(fig, h_pad, w_pad,
7272
fig : Figure
7373
``Figure`` instance to do the layout in.
7474
75-
renderer : Renderer
76-
Renderer to use.
77-
7875
h_pad, w_pad : float
7976
Padding around the axes elements in figure-normalized units.
8077
@@ -675,7 +672,7 @@ def reposition_colorbar(layoutgrids, cbax, renderer, *, offset=None):
675672
cbax : Axes
676673
Axes for the colorbar
677674
678-
renderer :
675+
renderer : `~matplotlib.backend_bases.RendererBase` subclass
679676
w_pad, h_pad : float
680677
width and height padding (in fraction of figure)
681678
hspace, wspace : float

lib/matplotlib/_tight_layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def get_tight_layout_figure(fig, axes_list, subplotspec_list, renderer,
202202
axes_list : list of Axes
203203
subplotspec_list : list of `.SubplotSpec`
204204
The subplotspecs of each axes.
205-
renderer : renderer
205+
renderer : `~matplotlib.backend_bases.RendererBase` subclass
206206
pad : float
207207
Padding between the figure edge and the edges of subplots, as a
208208
fraction of the font size.

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def set_path_effects(self, path_effects):
715715
716716
Parameters
717717
----------
718-
path_effects : `.AbstractPathEffect`
718+
path_effects : `~matplotlib.patheffects.AbstractPathEffect`
719719
"""
720720
self._path_effects = path_effects
721721
self.stale = True

lib/matplotlib/axes/_axes.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ class Axes(_AxesBase):
6868
6969
Attributes
7070
----------
71-
dataLim : `.Bbox`
71+
dataLim : `~matplotlib.transforms.Bbox`
7272
The bounding box enclosing all data displayed in the Axes.
73-
viewLim : `.Bbox`
73+
viewLim : `~matplotlib.transforms.Bbox`
7474
The view limits in data coordinates.
7575
7676
"""
@@ -337,7 +337,7 @@ def inset_axes(self, bounds, *, transform=None, zorder=5, **kwargs):
337337
bounds : [x0, y0, width, height]
338338
Lower-left corner of inset Axes, and its width and height.
339339
340-
transform : `.Transform`
340+
transform : `~matplotlib.transforms.Transform`
341341
Defaults to `ax.transAxes`, i.e. the units of *rect* are in
342342
Axes-relative coordinates.
343343
@@ -422,7 +422,7 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
422422
drawn connecting the indicator box to the inset Axes on corners
423423
chosen so as to not overlap with the indicator box.
424424
425-
transform : `.Transform`
425+
transform : `~matplotlib.transforms.Transform`
426426
Transform for the rectangle coordinates. Defaults to
427427
`ax.transAxes`, i.e. the units of *rect* are in Axes-relative
428428
coordinates.
@@ -447,7 +447,7 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
447447
448448
Returns
449449
-------
450-
rectangle_patch : `.patches.Rectangle`
450+
rectangle_patch : `~matplotlib.patches.Rectangle`
451451
The indicator frame.
452452
453453
connector_lines : 4-tuple of `.patches.ConnectionPatch`
@@ -533,7 +533,7 @@ def indicate_inset_zoom(self, inset_ax, **kwargs):
533533
534534
Returns
535535
-------
536-
rectangle_patch : `.patches.Rectangle`
536+
rectangle_patch : `~matplotlib.patches.Rectangle`
537537
Rectangle artist.
538538
539539
connector_lines : 4-tuple of `.patches.ConnectionPatch`
@@ -1991,7 +1991,7 @@ def acorr(self, x, **kwargs):
19911991
The lag vector.
19921992
c : array (length ``2*maxlags+1``)
19931993
The auto correlation vector.
1994-
line : `.LineCollection` or `.Line2D`
1994+
line : `~matplotlib.collections.LineCollection` or `~matplotlib.lines.Line2D`
19951995
`.Artist` added to the Axes of the correlation:
19961996
19971997
- `.LineCollection` if *usevlines* is True.
@@ -2068,7 +2068,7 @@ def xcorr(self, x, y, normed=True, detrend=mlab.detrend_none,
20682068
The lag vector.
20692069
c : array (length ``2*maxlags+1``)
20702070
The auto correlation vector.
2071-
line : `.LineCollection` or `.Line2D`
2071+
line : `~matplotlib.collections.LineCollection` or `~matplotlib.lines.Line2D`
20722072
`.Artist` added to the Axes of the correlation:
20732073
20742074
- `.LineCollection` if *usevlines* is True.
@@ -2706,7 +2706,7 @@ def bar_label(self, container, labels=None, *, fmt="%g", label_type="edge",
27062706
27072707
Parameters
27082708
----------
2709-
container : `.BarContainer`
2709+
container : `~matplotlib.container.BarContainer`
27102710
Container with all the bars and optionally errorbars, likely
27112711
returned from `.bar` or `.barh`.
27122712
@@ -6703,8 +6703,8 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
67036703
edge of last bin). Always a single array even when multiple data
67046704
sets are passed in.
67056705
6706-
patches : `.BarContainer` or list of a single `.Polygon` or list of \
6707-
such objects
6706+
patches : `~matplotlib.container.BarContainer` or list of a single \
6707+
`~matplotlib.patches.Polygon` or list of such objects
67086708
Container of individual artists used to create the histogram
67096709
or list of such containers if there are multiple input datasets.
67106710

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4143,7 +4143,7 @@ def start_pan(self, x, y, button):
41434143
----------
41444144
x, y : float
41454145
The mouse coordinates in display coords.
4146-
button : `.MouseButton`
4146+
button : `~matplotlib.backend_bases.MouseButton`
41474147
The pressed mouse button.
41484148
41494149
Notes
@@ -4236,7 +4236,7 @@ def drag_pan(self, button, key, x, y):
42364236
42374237
Parameters
42384238
----------
4239-
button : `.MouseButton`
4239+
button : `~matplotlib.backend_bases.MouseButton`
42404240
The pressed mouse button.
42414241
key : str or None
42424242
The pressed key, if any.
@@ -4319,7 +4319,7 @@ def get_tightbbox(self, renderer=None, call_axes_locator=True,
43194319
43204320
Parameters
43214321
----------
4322-
renderer : `.RendererBase` subclass
4322+
renderer : `~matplotlib.backend_bases.RendererBase` subclass, optional
43234323
renderer that will be used to draw the figures (i.e.
43244324
``fig.canvas.get_renderer()``)
43254325

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ class DrawEvent(Event):
12991299
13001300
Attributes
13011301
----------
1302-
renderer : `RendererBase`
1302+
renderer : `~matplotlib.backend_bases.RendererBase` subclass
13031303
The renderer for the draw event.
13041304
"""
13051305
def __init__(self, name, canvas, renderer):

lib/matplotlib/backend_managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ToolManager:
3636
3737
Attributes
3838
----------
39-
figure : `.Figure`
39+
figure : `~matplotlib.figure.Figure`
4040
keypresslock : `~matplotlib.widgets.LockDraw`
4141
`.LockDraw` object to know if the `canvas` key_press_event is locked.
4242
messagelock : `~matplotlib.widgets.LockDraw`
@@ -81,7 +81,7 @@ def set_figure(self, figure, update_tools=True):
8181
8282
Parameters
8383
----------
84-
figure : `.Figure`
84+
figure : `~matplotlib.figure.Figure`
8585
update_tools : bool, default: True
8686
Force tools to update figure.
8787
"""

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ def savefig(self, figure=None, **kwargs):
27332733
27342734
Parameters
27352735
----------
2736-
figure : `.Figure` or int, default: the active figure
2736+
figure : `~matplotlib.figure.Figure` or int, default: the active figure
27372737
The figure, or index of the figure, that is saved to the file.
27382738
"""
27392739
if not isinstance(figure, Figure):

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ def savefig(self, figure=None, **kwargs):
969969
970970
Parameters
971971
----------
972-
figure : `.Figure` or int, default: the active figure
972+
figure : `~matplotlib.figure.Figure` or int, default: the active figure
973973
The figure, or index of the figure, that is saved to the file.
974974
"""
975975
if not isinstance(figure, Figure):

lib/matplotlib/cm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def __init__(self, norm=None, cmap=None):
394394
"""
395395
Parameters
396396
----------
397-
norm : `.Normalize` (or subclass thereof) or str or None
397+
norm : `~matplotlib.colors.Normalize` (or subclass thereof) or str or None
398398
The normalizing object which scales data, typically into the
399399
interval ``[0, 1]``.
400400
If a `str`, a `.Normalize` subclass is dynamically generated based
@@ -640,7 +640,7 @@ def set_norm(self, norm):
640640
641641
Parameters
642642
----------
643-
norm : `.Normalize` or str or None
643+
norm : `~matplotlib.colors.Normalize` or str or None
644644
645645
Notes
646646
-----

0 commit comments

Comments
 (0)