7
7
.. contents ::
8
8
:backlinks: none
9
9
10
-
11
- .. _howto-plotting :
12
-
13
- How-to: Plotting
14
- ================
15
-
16
10
.. _howto-datetime64 :
17
11
18
12
Plot `numpy.datetime64 ` values
@@ -28,7 +22,6 @@ unnecessary when using pandas instead of Matplotlib directly. ::
28
22
from pandas.plotting import register_matplotlib_converters
29
23
register_matplotlib_converters()
30
24
31
-
32
25
.. _howto-figure-empty :
33
26
34
27
Check whether a figure is empty
@@ -84,11 +77,10 @@ You can also filter on class instances::
84
77
for o in fig.findobj(text.Text):
85
78
o.set_fontstyle('italic')
86
79
87
-
88
80
.. _howto-supress_offset :
89
81
90
- How to prevent ticklabels from having an offset
91
- -----------------------------------------------
82
+ Prevent ticklabels from having an offset
83
+ ----------------------------------------
92
84
The default formatter will use an offset to reduce
93
85
the length of the ticklabels. To turn this feature
94
86
off on a per-axis basis::
@@ -128,7 +120,6 @@ on individual elements, e.g.::
128
120
ax.plot(x, y, alpha=0.5)
129
121
ax.set_xlabel('volts', alpha=0.5)
130
122
131
-
132
123
.. _howto-multipage :
133
124
134
125
Save multiple plots to one pdf file
@@ -161,7 +152,6 @@ The same can be done using the pgf backend::
161
152
162
153
from matplotlib.backends.backend_pgf import PdfPages
163
154
164
-
165
155
.. _howto-subplots-adjust :
166
156
167
157
Move the edge of an axes to make room for tick labels
@@ -301,7 +291,6 @@ are ``markerfacecolor``, ``markeredgecolor``, ``markeredgewidth``,
301
291
``markersize ``. For more information on configuring ticks, see
302
292
:ref: `axis-container ` and :ref: `tick-container `.
303
293
304
-
305
294
.. _howto-align-label :
306
295
307
296
Align my ylabels across multiple subplots
@@ -341,7 +330,6 @@ how to use an 'index formatter' to achieve the desired plot.
341
330
Control the depth of plot elements
342
331
----------------------------------
343
332
344
-
345
333
Within an axes, the order that the various lines, markers, text,
346
334
collections, etc appear is determined by the
347
335
:meth: `~matplotlib.artist.Artist.set_zorder ` property. The default
@@ -377,8 +365,8 @@ some ratio which controls the ratio::
377
365
378
366
.. _howto-twoscale :
379
367
380
- Multiple y-axis scales
381
- ----------------------
368
+ Draw multiple y-axis scales
369
+ ---------------------------
382
370
383
371
A frequent request is to have two scales for the left and right
384
372
y-axis, which is possible using :func: `~matplotlib.pyplot.twinx ` (more
@@ -438,8 +426,8 @@ the desired format::
438
426
439
427
.. _how-to-threads :
440
428
441
- Working with threads
442
- --------------------
429
+ Work with threads
430
+ -----------------
443
431
444
432
Matplotlib is not thread-safe: in fact, there are known race conditions
445
433
that affect certain artists. Hence, if you work with threads, it is your
0 commit comments