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

Skip to content

Commit fed6bdd

Browse files
mdboomQuLogic
authored andcommitted
Merge pull request matplotlib#5204 from gcallah/master
Minor cleanup work on navigation, text, and customization files. Conflicts: doc/users/navigation_toolbar.rst doc/users/style_sheets.rst Note that (some) changes in style_sheets.rst were applited to text_intro.rst instead as that is where the text is on 2.x.
1 parent ef06f5f commit fed6bdd

File tree

3 files changed

+32
-28
lines changed

3 files changed

+32
-28
lines changed

doc/users/customizing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Using style sheets
88
==================
99

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

1314
There are a number of pre-defined styles provided by matplotlib. For
1415
example, there's a pre-defined style called "ggplot", which emulates the

doc/users/navigation_toolbar.rst

Lines changed: 14 additions & 14 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_large.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_large.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

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)