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

Skip to content

Commit bbc440f

Browse files
committed
DOC: clean up rst in whats_new folder
1 parent 326ccd6 commit bbc440f

16 files changed

Lines changed: 64 additions & 40 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Artist-level {get,set}_usetex for text
22
--------------------------------------
33

4-
Add `{get,set}_usetex` methods to `text.Text` objects which allow artist-level
4+
Add ``{get,set}_usetex`` methods to `text.Text` objects which allow artist-level
55
control of LaTeX rendering vs the internal mathtex rendering.

doc/users/whats_new/2015-03-03_locator-set_params.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set_params() function, which sets parameters within a Locator type instance,
55
is now available to all Locator types. The implementation also prevents unsafe
66
usage by strictly defining the parameters that a user can set.
77

8-
To use, simply call set_params() on a Locator instance with desired arguments:
8+
To use, simply call ``set_params()`` on a Locator instance with desired arguments:
99
::
1010

1111
loc = matplotlib.ticker.LogLocator()

doc/users/whats_new/autowrap_text.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ Auto-wrapping Text
33
Added the keyword argument "wrap" to Text, which automatically breaks long lines of text when being drawn.
44
Works for any rotated text, different modes of alignment, and for text that are either labels or titles.
55

6-
Example:
7-
plt.text(1, 1, "This is a really long string that should be wrapped so that it does not go outside the figure.", wrap=True)
6+
Example ::
7+
8+
plt.text(1, 1,
9+
"This is a really long string that should be wrapped so that "
10+
"it does not go outside the figure.", wrap=True)

doc/users/whats_new/axis3d.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Fixed labelpad in Axis3D
2-
```````````````````````````````````
2+
````````````````````````
33

44
Axis3D now looks at xaxis.labelpad (from rcParams or set by
5-
set_xlabel('X LABEL', labelpad=30) or ax.zaxis.labelpad = 20)
6-
to determine the position of axis labels in 3D plots.
5+
``set_xlabel('X LABEL', labelpad=30)`` or ``ax.zaxis.labelpad=20)`` to
6+
determine the position of axis labels in 3D plots.

doc/users/whats_new/cbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cbook.is_sequence_of_strings recognizes string objects
22
``````````````````````````````````````````````````````
33

4-
This is primarily how pandas stores a sequence of strings.
4+
This is primarily how pandas stores a sequence of strings ::
55

66
import pandas as pd
77
import matplotlib.cbook as cbook

doc/users/whats_new/datelocators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Date Locators (derived from :class:`~matplotlib.dates.DateLocator`) now
55
implement the :meth:`~matplotlib.tickers.Locator.tick_values` method.
66
This is expected of all Locators derived from :class:`~matplotlib.tickers.Locator`.
77

8-
The Date Locators can now be used easily without creating axes
8+
The Date Locators can now be used easily without creating axes ::
99

1010
from datetime import datetime
1111
from matplotlib.dates import YearLocator

doc/users/whats_new/linestyles.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
Mostly unified linestyles for Lines, Patches and Collections
2-
````````````````````````````````````````````````````````````
1+
Mostly unified linestyles for `Line2D`, `Patche` and `Collection`
2+
`````````````````````````````````````````````````````````````````
33

44
The handling of linestyles for Lines, Patches and Collections has been
55
unified. Now they all support defining linestyles with short symbols,
6-
like `"--"`, as well as with full names, like `"dashed"`. Also the
7-
definition using a dash pattern (`(0., [3., 3.])`) is supported for all
8-
methods using Lines, Patches or Collections.
6+
like `"--"`, as well as with full names, like ``"dashed"``. Also the
7+
definition using a dash pattern (``(0., [3., 3.])``) is supported for all
8+
methods using `Line2D`, `Patche` or ``Collection*``.

doc/users/whats_new/pdfpages_notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ viewer that has this facility (Adobe Reader, OSX Preview, Skim,
88
etc.). Per default the note itself is kept off-page to prevent it to
99
appear in print-outs.
1010

11-
PdfPages.attach_note needs to be called before savefig in order to be
11+
`PdfPages.attach_note` needs to be called before savefig in order to be
1212
added to the correct figure.

doc/users/whats_new/plotting.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Plot bar and barh with labels
22
`````````````````````````````
33

4-
Added kwarg "tick_label" to bar and barh to support plotting bar graphs with a
4+
Added kwarg ``"tick_label"`` to `bar` and `barh` to support plotting bar graphs with a
55
text label for each bar.
6-
Example:
7-
bar([1, 2], [1, 1], tick_label=['bar1', 'bar2'])
6+
7+
Example: ::
8+
9+
bar([1, 2], [1, 1], tick_label=['bar1', 'bar2'])
810

911
Added center and frame kwargs to pie
1012
````````````````````````````````````
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
wx backend has been updated
22
---------------------------
3+
34
The wx backend can now be used with both wxPython classic and
45
`Phoenix <http://wxpython.org/Phoenix/docs/html/main.html>`__.
56

67
wxPython classic has to be at least version 2.8.12 and works on Python 2.x. As
7-
of May 2015 no official release of wxPython Phoenix is available but a
8+
of May 2015 no official release of wxPython Phoenix is available but a
89
current snapshot will work on Python 2.7+ and 3.4+.
910

1011
If you have multiple versions of wxPython installed, then the user code is
1112
responsible setting the wxPython version. How to do this is
12-
explained in the comment at the beginning of the example
13+
explained in the comment at the beginning of the example
1314
`examples\user_interfaces\embedding_in_wx2.py`.

0 commit comments

Comments
 (0)