Skip to content

Commit 7443d88

Browse files
authored
Merge pull request #21964 from anntzer/mr
Fix some more missing references.
2 parents 38d92b2 + a5adc15 commit 7443d88

File tree

9 files changed

+11
-45
lines changed

9 files changed

+11
-45
lines changed

doc/api/prev_api_changes/api_changes_3.0.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Contour color autoscaling improvements
197197
Selection of contour levels is now the same for contour and
198198
contourf; previously, for contour, levels outside the data range were
199199
deleted. (Exception: if no contour levels are found within the
200-
data range, the `levels` attribute is replaced with a list holding
200+
data range, the ``levels`` attribute is replaced with a list holding
201201
only the minimum of the data range.)
202202

203203
When contour is called with levels specified as a target number rather

doc/api/prev_api_changes/api_changes_3.1.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ Classes and methods
496496
- ``backend_wx.Toolbar`` (use ``backend_wx.NavigationToolbar2Wx`` instead)
497497
- ``cbook.align_iterators`` (no replacement)
498498
- ``contour.ContourLabeler.get_real_label_width`` (no replacement)
499-
- ``legend.Legend.draggable`` (use `legend.Legend.set_draggable()` instead)
499+
- ``legend.Legend.draggable`` (use `.legend.Legend.set_draggable()` instead)
500500
- ``texmanager.TexManager.postscriptd``, ``texmanager.TexManager.pscnt``,
501501
``texmanager.TexManager.make_ps``, ``texmanager.TexManager.get_ps_bbox``
502502
(no replacements)

doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ highest.
4646
Code that worked around the normalization between 0 and 1 will need to be
4747
modified.
4848

49-
`MovieWriterRegistry`
50-
~~~~~~~~~~~~~~~~~~~~~
51-
`MovieWriterRegistry` now always checks the availability of the writer classes
49+
``MovieWriterRegistry``
50+
~~~~~~~~~~~~~~~~~~~~~~~
51+
`.MovieWriterRegistry` now always checks the availability of the writer classes
5252
before returning them. If one wishes, for example, to get the first available
5353
writer, without performing the availability check on subsequent writers, it is
5454
now possible to iterate over the registry, which will yield the names of the

doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The unused ``Locator.autoscale`` method is deprecated (pass the axis limits to
118118

119119
Animation
120120
~~~~~~~~~
121-
The following methods and attributes of the `MovieWriterRegistry` class are
121+
The following methods and attributes of the `.MovieWriterRegistry` class are
122122
deprecated: ``set_dirty``, ``ensure_not_dirty``, ``reset_available_writers``,
123123
``avail``.
124124

doc/missing-references.json

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -631,11 +631,6 @@
631631
"lib/matplotlib/animation.py:docstring of matplotlib.animation.FFMpegBase:4",
632632
"lib/matplotlib/animation.py:docstring of matplotlib.animation.ImageMagickBase:4"
633633
],
634-
"MovieWriterRegistry": [
635-
"doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst:49",
636-
"doc/api/prev_api_changes/api_changes_3.2.0/behavior.rst:51",
637-
"doc/api/prev_api_changes/api_changes_3.2.0/deprecations.rst:121"
638-
],
639634
"QuadContourSet.changed()": [
640635
"lib/matplotlib/axes/_axes.py:docstring of matplotlib.axes._axes.Axes.contour:133",
641636
"lib/matplotlib/axes/_axes.py:docstring of matplotlib.axes._axes.Axes.contourf:133",
@@ -717,9 +712,6 @@
717712
"axis.Axis.get_ticks_position": [
718713
"doc/api/prev_api_changes/api_changes_3.1.0.rst:826"
719714
],
720-
"backend_bases.RendererBase": [
721-
"lib/matplotlib/backends/backend_template.py:docstring of matplotlib.backends.backend_template.RendererTemplate:4"
722-
],
723715
"backend_bases.ToolContainerBase": [
724716
"lib/matplotlib/backend_tools.py:docstring of matplotlib.backend_tools.add_tools_to_container:8"
725717
],
@@ -742,9 +734,6 @@
742734
"draw_image": [
743735
"lib/matplotlib/backends/backend_agg.py:docstring of matplotlib.backends.backend_agg.RendererAgg.option_scale_image:2"
744736
],
745-
"fc-list": [
746-
"lib/matplotlib/font_manager.py:docstring of matplotlib.font_manager.get_fontconfig_fonts:2"
747-
],
748737
"figure.bbox": [
749738
"lib/matplotlib/axes/_axes.py:docstring of matplotlib.axes._axes.Axes.legend:140",
750739
"lib/matplotlib/figure.py:docstring of matplotlib.figure.FigureBase.legend:141",
@@ -761,9 +750,6 @@
761750
"fmt_ydata": [
762751
"lib/matplotlib/axes/_base.py:docstring of matplotlib.axes._base._AxesBase.format_ydata:4"
763752
],
764-
"gaussian_kde": [
765-
"lib/matplotlib/mlab.py:docstring of matplotlib.mlab.GaussianKDE:32"
766-
],
767753
"get_size": [
768754
"lib/mpl_toolkits/axes_grid1/axes_size.py:docstring of mpl_toolkits.axes_grid1.axes_size:1"
769755
],
@@ -773,9 +759,6 @@
773759
"get_ybound": [
774760
"lib/mpl_toolkits/mplot3d/axes3d.py:docstring of mpl_toolkits.mplot3d.axes3d.Axes3D.get_ylim3d:22"
775761
],
776-
"h_pad": [
777-
"lib/matplotlib/figure.py:docstring of matplotlib.figure.Figure.set_constrained_layout:5"
778-
],
779762
"image": [
780763
"lib/matplotlib/sphinxext/plot_directive.py:docstring of matplotlib.sphinxext.plot_directive:79"
781764
],
@@ -801,12 +784,6 @@
801784
"lib/matplotlib/mlab.py:docstring of matplotlib.mlab.GaussianKDE:45",
802785
"lib/matplotlib/pyplot.py:docstring of matplotlib.pyplot.violinplot:46"
803786
],
804-
"legend.Legend.set_draggable()": [
805-
"doc/api/prev_api_changes/api_changes_3.1.0.rst:499"
806-
],
807-
"levels": [
808-
"doc/api/prev_api_changes/api_changes_3.0.0.rst:197"
809-
],
810787
"load_char": [
811788
"doc/gallery/misc/ftface_props.rst:25"
812789
],
@@ -1120,9 +1097,6 @@
11201097
"tool_removed_event": [
11211098
"lib/matplotlib/backend_bases.py:docstring of matplotlib.backend_bases.ToolContainerBase.remove_toolitem:6"
11221099
],
1123-
"w_pad": [
1124-
"lib/matplotlib/figure.py:docstring of matplotlib.figure.Figure.set_constrained_layout:5"
1125-
],
11261100
"whats_new.rst": [
11271101
"doc/users/next_whats_new/README.rst:6"
11281102
],

lib/matplotlib/backends/backend_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class RendererTemplate(RendererBase):
4141
The renderer handles drawing/rendering operations.
4242
4343
This is a minimal do-nothing class that can be used to get started when
44-
writing a new backend. Refer to `backend_bases.RendererBase` for
44+
writing a new backend. Refer to `.backend_bases.RendererBase` for
4545
documentation of the methods.
4646
"""
4747

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2444,7 +2444,7 @@ def set_constrained_layout(self, constrained):
24442444
Set whether ``constrained_layout`` is used upon drawing. If None,
24452445
:rc:`figure.constrained_layout.use` value will be used.
24462446
2447-
When providing a dict containing the keys `w_pad`, `h_pad`
2447+
When providing a dict containing the keys ``w_pad``, ``h_pad``
24482448
the default ``constrained_layout`` paddings will be
24492449
overridden. These pads are in inches and default to 3.0/72.0.
24502450
``w_pad`` is the width padding and ``h_pad`` is the height padding.

lib/matplotlib/font_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def _get_win32_installed_fonts():
327327

328328
@lru_cache()
329329
def _get_fontconfig_fonts():
330-
"""Cache and list the font paths known to `fc-list`."""
330+
"""Cache and list the font paths known to ``fc-list``."""
331331
try:
332332
if b'--format' not in subprocess.check_output(['fc-list', '--help']):
333333
_log.warning( # fontconfig 2.7 implemented --format.
@@ -341,7 +341,7 @@ def _get_fontconfig_fonts():
341341

342342
@_api.deprecated("3.5")
343343
def get_fontconfig_fonts(fontext='ttf'):
344-
"""List font filenames known to `fc-list` having the given extension."""
344+
"""List font filenames known to ``fc-list`` having the given extension."""
345345
fontext = ['.' + ext for ext in get_fontext_synonyms(fontext)]
346346
return [str(path) for path in _get_fontconfig_fonts()
347347
if path.suffix.lower() in fontext]

lib/matplotlib/mlab.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,6 @@ class GaussianKDE:
851851
dataset : array-like
852852
Datapoints to estimate from. In case of univariate data this is a 1-D
853853
array, otherwise a 2D array with shape (# of dims, # of data).
854-
855854
bw_method : str, scalar or callable, optional
856855
The method used to calculate the estimator bandwidth. This can be
857856
'scott', 'silverman', a scalar constant or a callable. If a
@@ -862,33 +861,26 @@ class GaussianKDE:
862861
Attributes
863862
----------
864863
dataset : ndarray
865-
The dataset with which `gaussian_kde` was initialized.
866-
864+
The dataset passed to the constructor.
867865
dim : int
868866
Number of dimensions.
869-
870867
num_dp : int
871868
Number of datapoints.
872-
873869
factor : float
874870
The bandwidth factor, obtained from `kde.covariance_factor`, with which
875871
the covariance matrix is multiplied.
876-
877872
covariance : ndarray
878873
The covariance matrix of *dataset*, scaled by the calculated bandwidth
879874
(`kde.factor`).
880-
881875
inv_cov : ndarray
882876
The inverse of *covariance*.
883877
884878
Methods
885879
-------
886880
kde.evaluate(points) : ndarray
887881
Evaluate the estimated pdf on a provided set of points.
888-
889882
kde(points) : ndarray
890883
Same as kde.evaluate(points)
891-
892884
"""
893885

894886
# This implementation with minor modification was too good to pass up.

0 commit comments

Comments
 (0)