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

Skip to content

Commit cdb40b4

Browse files
committed
Merge pull request #5204 from gcallah/master
Minor cleanup work on navigation, text, and customization files.
2 parents 781540e + faeb060 commit cdb40b4

File tree

3 files changed

+38
-33
lines changed

3 files changed

+38
-33
lines changed

doc/users/navigation_toolbar.rst

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ the buttons at the bottom of the toolbar
1515

1616
.. image:: ../../lib/matplotlib/mpl-data/images/forward.png
1717

18-
The ``Forward`` and ``Back`` buttons
19-
These are akin to the web browser forward and back buttons. They
20-
are used to navigate back and forth between previously defined
21-
views. They have no meaning unless you have already navigated
22-
somewhere else using the pan and zoom buttons. This is analogous
18+
The ``Home``, ``Forward`` and ``Back`` buttons
19+
These are akin to a web browser's home, forward and back controls.
20+
``Forward`` and ``Back`` are used to navigate back and forth between
21+
previously defined views. They have no meaning unless you have already
22+
navigated somewhere else using the pan and zoom buttons. This is analogous
2323
to trying to click ``Back`` on your web browser before visiting a
24-
new page --nothing happens. ``Home`` always takes you to the
25-
first, default view of your data. For ``Home``, ``Forward`` and
26-
``Back``, think web browser where data views are web pages. Use
27-
the pan and zoom to rectangle to define new views.
24+
new page or ``Forward`` before you have gone back to a page --
25+
nothing happens. ``Home`` always takes you to the
26+
first, default view of your data. Again, all of these buttons should
27+
feel very familiar to any user of a web browser.
2828

2929
.. image:: ../../lib/matplotlib/mpl-data/images/move.png
3030

@@ -37,11 +37,11 @@ The ``Pan/Zoom`` button
3737
where you released. If you press 'x' or 'y' while panning the
3838
motion will be constrained to the x or y axis, respectively. Press
3939
the right mouse button to zoom, dragging it to a new position.
40-
The x axis will be zoomed in proportionate to the rightward
41-
movement and zoomed out proportionate to the leftward movement.
42-
Ditto for the y axis and up/down motions. The point under your
40+
The x axis will be zoomed in proportionately to the rightward
41+
movement and zoomed out proportionately to the leftward movement.
42+
The same is true for the y axis and up/down motions. The point under your
4343
mouse when you begin the zoom remains stationary, allowing you to
44-
zoom to an arbitrary point in the figure. You can use the
44+
zoom in or out around that point as much as you wish. You can use the
4545
modifier keys 'x', 'y' or 'CONTROL' to constrain the zoom to the x
4646
axis, the y axis, or aspect ratio preserve, respectively.
4747

@@ -54,7 +54,7 @@ The ``Pan/Zoom`` button
5454

5555
The ``Zoom-to-rectangle`` button
5656
Click this toolbar button to activate this mode. Put your mouse
57-
somewhere over and axes and press the left mouse button. Drag the
57+
somewhere over an axes and press the left mouse button. Drag the
5858
mouse while holding the button to a new location and release. The
5959
axes view limits will be zoomed to the rectangle you have defined.
6060
There is also an experimental 'zoom out to rectangle' in this mode
@@ -64,9 +64,10 @@ The ``Zoom-to-rectangle`` button
6464
.. image:: ../../lib/matplotlib/mpl-data/images/subplots.png
6565

6666
The ``Subplot-configuration`` button
67-
Use this tool to configure the parameters of the subplot: the
68-
left, right, top, bottom, space between the rows and space between
69-
the columns.
67+
Use this tool to configure the appearance of the subplot:
68+
you can stretch or compress the left, right, top, or bottom
69+
side of the subplot, or the space between the rows or
70+
space between the columns.
7071

7172
.. image:: ../../lib/matplotlib/mpl-data/images/filesave.png
7273

doc/users/style_sheets.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ Customizing plots with style sheets
66

77

88
The ``style`` package adds support for easy-to-switch plotting "styles" with
9-
the same parameters as a matplotlibrc_ file.
9+
the same parameters as a matplotlibrc_ file (which is read at startup to
10+
configure matplotlib).
1011

1112
There are a number of pre-defined styles provided by matplotlib. For
1213
example, there's a pre-defined style called "ggplot", which emulates the
@@ -28,8 +29,8 @@ You can create custom styles and use them by calling ``style.use`` with the
2829
path or URL to the style sheet. Alternatively, if you add your ``<style-name>.mplstyle``
2930
file to ``mpl_configdir/stylelib``, you can reuse your custom style sheet with a call to
3031
``style.use(<style-name>)``. By default ``mpl_configdir`` should be ``~/.config/matplotlib``,
31-
but you can check where yours is with ``matplotlib.get_configdir()``, you may need to
32-
create this directory. Note that a custom style sheet in ``mpl_configdir/stylelib``
32+
but you can check where yours is with ``matplotlib.get_configdir()``. (You may need to
33+
create this directory.) Note that a custom style sheet in ``mpl_configdir/stylelib``
3334
will override a style sheet defined by matplotlib if the styles have the same name.
3435

3536
For example, you might want to create

doc/users/text_intro.rst

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@
33
Text introduction
44
=================
55

6-
matplotlib has excellent text support, including mathematical
7-
expressions, truetype support for raster and vector outputs, newline
8-
separated text with arbitrary rotations, and unicode support. Because
9-
we embed the fonts directly in the output documents, e.g., for postscript
6+
matplotlib has extensive text support, including support for
7+
mathematical expressions, truetype support for raster and
8+
vector outputs, newline separated text with arbitrary
9+
rotations, and unicode support. Because it embeds
10+
fonts directly in output documents, e.g., for postscript
1011
or PDF, what you see on the screen is what you get in the hardcopy.
1112
`FreeType <http://www.freetype.org/>`_ support
1213
produces very nice, antialiased fonts, that look good even at small
1314
raster sizes. matplotlib includes its own
14-
:mod:`matplotlib.font_manager`, thanks to Paul Barrett, which
15-
implements a cross platform, W3C compliant font finding algorithm.
16-
17-
You have total control over every text property (font size, font
18-
weight, text location and color, etc) with sensible defaults set in
19-
the rc file. And significantly for those interested in mathematical
15+
:mod:`matplotlib.font_manager` (thanks to Paul Barrett), which
16+
implements a cross platform, `W3C <http://www.w3.org/>`
17+
compliant font finding algorithm.
18+
19+
The user has a great deal of control over text properties (font size, font
20+
weight, text location and color, etc.) with sensible defaults set in
21+
the `rc file <http://matplotlib.org/users/customizing.html>`.
22+
And significantly, for those interested in mathematical
2023
or scientific figures, matplotlib implements a large number of TeX
21-
math symbols and commands, to support :ref:`mathematical expressions
24+
math symbols and commands, supporting :ref:`mathematical expressions
2225
<mathtext-tutorial>` anywhere in your figure.
2326

2427

@@ -31,10 +34,10 @@ interface
3134
* :func:`~matplotlib.pyplot.text` - add text at an arbitrary location to the ``Axes``;
3235
:meth:`matplotlib.axes.Axes.text` in the API.
3336

34-
* :func:`~matplotlib.pyplot.xlabel` - add an axis label to the x-axis;
37+
* :func:`~matplotlib.pyplot.xlabel` - add a label to the x-axis;
3538
:meth:`matplotlib.axes.Axes.set_xlabel` in the API.
3639

37-
* :func:`~matplotlib.pyplot.ylabel` - add an axis label to the y-axis;
40+
* :func:`~matplotlib.pyplot.ylabel` - add a label to the y-axis;
3841
:meth:`matplotlib.axes.Axes.set_ylabel` in the API.
3942

4043
* :func:`~matplotlib.pyplot.title` - add a title to the ``Axes``;

0 commit comments

Comments
 (0)