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

Skip to content

Commit 660d4e7

Browse files
authored
Merge pull request #19883 from anntzer/faq
Small cleanups to FAQ.
2 parents 07fd38f + 48c1806 commit 660d4e7

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

doc/faq/howto_faq.rst

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ How-to
77
.. contents::
88
:backlinks: none
99

10-
11-
.. _howto-plotting:
12-
13-
How-to: Plotting
14-
================
15-
1610
.. _howto-datetime64:
1711

1812
Plot `numpy.datetime64` values
@@ -28,7 +22,6 @@ unnecessary when using pandas instead of Matplotlib directly. ::
2822
from pandas.plotting import register_matplotlib_converters
2923
register_matplotlib_converters()
3024

31-
3225
.. _howto-figure-empty:
3326

3427
Check whether a figure is empty
@@ -84,11 +77,10 @@ You can also filter on class instances::
8477
for o in fig.findobj(text.Text):
8578
o.set_fontstyle('italic')
8679

87-
8880
.. _howto-supress_offset:
8981

90-
How to prevent ticklabels from having an offset
91-
-----------------------------------------------
82+
Prevent ticklabels from having an offset
83+
----------------------------------------
9284
The default formatter will use an offset to reduce
9385
the length of the ticklabels. To turn this feature
9486
off on a per-axis basis::
@@ -128,7 +120,6 @@ on individual elements, e.g.::
128120
ax.plot(x, y, alpha=0.5)
129121
ax.set_xlabel('volts', alpha=0.5)
130122

131-
132123
.. _howto-multipage:
133124

134125
Save multiple plots to one pdf file
@@ -161,7 +152,6 @@ The same can be done using the pgf backend::
161152

162153
from matplotlib.backends.backend_pgf import PdfPages
163154

164-
165155
.. _howto-subplots-adjust:
166156

167157
Move the edge of an axes to make room for tick labels
@@ -301,7 +291,6 @@ are ``markerfacecolor``, ``markeredgecolor``, ``markeredgewidth``,
301291
``markersize``. For more information on configuring ticks, see
302292
:ref:`axis-container` and :ref:`tick-container`.
303293

304-
305294
.. _howto-align-label:
306295

307296
Align my ylabels across multiple subplots
@@ -341,7 +330,6 @@ how to use an 'index formatter' to achieve the desired plot.
341330
Control the depth of plot elements
342331
----------------------------------
343332

344-
345333
Within an axes, the order that the various lines, markers, text,
346334
collections, etc appear is determined by the
347335
:meth:`~matplotlib.artist.Artist.set_zorder` property. The default
@@ -377,8 +365,8 @@ some ratio which controls the ratio::
377365

378366
.. _howto-twoscale:
379367

380-
Multiple y-axis scales
381-
----------------------
368+
Draw multiple y-axis scales
369+
---------------------------
382370

383371
A frequent request is to have two scales for the left and right
384372
y-axis, which is possible using :func:`~matplotlib.pyplot.twinx` (more
@@ -438,8 +426,8 @@ the desired format::
438426

439427
.. _how-to-threads:
440428

441-
Working with threads
442-
--------------------
429+
Work with threads
430+
-----------------
443431

444432
Matplotlib is not thread-safe: in fact, there are known race conditions
445433
that affect certain artists. Hence, if you work with threads, it is your

0 commit comments

Comments
 (0)