Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 844b28c

Browse files
committed
Some manual fixes.
1 parent bded7cb commit 844b28c

16 files changed

Lines changed: 54 additions & 63 deletions

File tree

examples/color/color_cycle_default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
====================================
55
66
Display the colors from the default prop_cycle, which is obtained from the
7-
:ref:`rc parameters</tutorials/introductory/customizing>`.
7+
:doc:`rc parameters</tutorials/introductory/customizing>`.
88
"""
99
import numpy as np
1010
import matplotlib.pyplot as plt

examples/color/color_cycler.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
99
This example demonstrates two different APIs:
1010
11-
1. Setting the default
12-
:doc:`rc parameter</tutorials/introductory/customizing>`
13-
specifying the property cycle. This affects all subsequent axes
14-
(but not axes already created).
15-
2. Setting the property cycle for a single pair of axes.
11+
1. Setting the default :doc:`rc parameter</tutorials/introductory/customizing>`
12+
specifying the property cycle. This affects all subsequent axes (but not
13+
axes already created).
14+
2. Setting the property cycle for a single pair of axes.
1615
"""
1716
from cycler import cycler
1817
import numpy as np

examples/images_contours_and_fields/contour_demo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
Illustrate simple contour plotting, contours on an image with
77
a colorbar for the contours, and labelled contours.
88
9-
See also the
10-
:ref:`contour image example
9+
See also the :doc:`contour image example
1110
</gallery/images_contours_and_fields/contour_image>`.
1211
"""
1312
import matplotlib

examples/images_contours_and_fields/contour_image.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
=============
55
66
Test combinations of contouring, filled contouring, and image plotting.
7-
For contour labelling, see See also the
8-
:ref:`contour demo example
7+
For contour labelling, see also the :doc:`contour demo example
98
</gallery/images_contours_and_fields/contour_demo>`.
109
1110
The emphasis in this demo is on showing how to make contours register
12-
correctly on images, and on how to get both of them oriented as
13-
desired. In particular, note the usage of the
14-
:ref:`"origin" and "extent"
15-
</tutorials/intermediate/imshow_extent>`
16-
keyword arguments to imshow and contour.
11+
correctly on images, and on how to get both of them oriented as desired.
12+
In particular, note the usage of the :doc:`"origin" and "extent"
13+
</tutorials/intermediate/imshow_extent>` keyword arguments to imshow and
14+
contour.
1715
"""
1816
import matplotlib.pyplot as plt
1917
import numpy as np

examples/images_contours_and_fields/contour_label_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Illustrate some of the more advanced things that one can do with
77
contour labels.
88
9-
See also the :ref:`contour demo example
9+
See also the :doc:`contour demo example
1010
</gallery/images_contours_and_fields/contour_demo>`.
1111
"""
1212

examples/images_contours_and_fields/image_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
# x[0,0] in the upper left or lower right by using the origin parameter.
138138
# You can also control the default setting image.origin in your
139139
# :ref:`matplotlibrc file <customizing-with-matplotlibrc-files>`. For more on
140-
# this topic see the :ref:`complete guide on origin and extent
140+
# this topic see the :doc:`complete guide on origin and extent
141141
# </tutorials/intermediate/imshow_extent>`.
142142

143143
x = np.arange(120).reshape((10, 12))

examples/images_contours_and_fields/quiver_demo.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
Demonstration of advanced quiver and quiverkey functions
44
========================================================
55
6-
Demonstrates some more advanced options for `~.axes.Axes.quiver`.
7-
For a simple example refer to
8-
:doc:`/gallery/images_contours_and_fields/quiver_simple_demo`.
6+
Demonstrates some more advanced options for `~.axes.Axes.quiver`. For a simple
7+
example refer to :doc:`/gallery/images_contours_and_fields/quiver_simple_demo`.
98
10-
Known problem: the plot autoscaling does not take into account
11-
the arrows, so those on the boundaries are often out of the picture.
12-
This is *not* an easy problem to solve in a perfectly general way.
13-
The workaround is to manually expand the Axes objects.
9+
Known problem: the plot autoscaling does not take into account the arrows, so
10+
those on the boundaries are often out of the picture. This is *not* an easy
11+
problem to solve in a perfectly general way. The workaround is to manually
12+
expand the Axes objects.
1413
"""
1514
import matplotlib.pyplot as plt
1615
import numpy as np

examples/images_contours_and_fields/quiver_simple_demo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
Quiver Simple Demo
44
==================
55
6-
A simple example of a `~.axes.Axes.quiver` plot with a
7-
`~.axes.Axes.quiverkey`.
6+
A simple example of a `~.axes.Axes.quiver` plot with a `~.axes.Axes.quiverkey`.
87
9-
For more advanced options refer to
8+
For more advanced options refer to
109
:doc:`/gallery/images_contours_and_fields/quiver_demo`.
1110
"""
1211
import matplotlib.pyplot as plt

examples/shapes_and_collections/ellipse_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
============
55
66
Draw many ellipses. Here individual ellipses are drawn. Compare this
7-
to the :ref:`Ellipse collection example
7+
to the :doc:`Ellipse collection example
88
</gallery/shapes_and_collections/ellipse_collection>`.
99
"""
1010
import matplotlib.pyplot as plt

lib/matplotlib/legend.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@
44
55
.. important::
66
7-
It is unlikely that you would ever create a Legend instance manually.
8-
Most users would normally create a legend via the
7+
It is unlikely that you would ever create a Legend instance
8+
manually. Most users would normally create a legend via the
99
:meth:`~matplotlib.axes.Axes.legend` function. For more details on legends
10-
there is also a :ref:`legend guide
11-
</tutorials/intermediate/legend_guide>`.
12-
13-
The Legend class can be considered as a container of legend handles
14-
and legend texts. Creation of corresponding legend handles from the
15-
plot elements in the axes or figures (e.g., lines, patches, etc.) are
16-
specified by the handler map, which defines the mapping between the
17-
plot elements and the legend handlers to be used (the default legend
18-
handlers are defined in the :mod:`~matplotlib.legend_handler` module).
19-
Note that not all kinds of artist are supported by the legend yet by default
20-
but it is possible to extend the legend handler's capabilities to support
21-
arbitrary objects. See the :ref:`legend guide
22-
</tutorials/intermediate/legend_guide>` for more information.
23-
10+
there is also a :doc:`legend guide </tutorials/intermediate/legend_guide>`.
11+
12+
The Legend class can be considered as a container of legend handles and
13+
legend texts. Creation of corresponding legend handles from the plot elements
14+
in the axes or figures (e.g., lines, patches, etc.) are specified by the
15+
handler map, which defines the mapping between the plot elements and the
16+
legend handlers to be used (the default legend handlers are defined in the
17+
:mod:`~matplotlib.legend_handler` module). Note that not all kinds of
18+
artist are supported by the legend yet by default but it is possible to
19+
extend the legend handler's capabilities to support arbitrary objects. See
20+
the :doc:`legend guide </tutorials/intermediate/legend_guide>` for more
21+
information.
2422
"""
2523

2624
import logging

0 commit comments

Comments
 (0)