Skip to content

Commit 24f530e

Browse files
authored
Merge pull request #24515 from meeseeksmachine/auto-backport-of-pr-24512-on-v3.6.x
Backport PR #24512 on branch v3.6.x (Tweak markup in toolkits tutorials.)
2 parents 422ed72 + b8726a9 commit 24f530e

File tree

3 files changed

+29
-31
lines changed

3 files changed

+29
-31
lines changed

tutorials/toolkits/axes_grid.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
r"""
22
.. _axes_grid1_users-guide-index:
33
4-
==========================================
5-
Overview of :mod:`mpl_toolkits.axes_grid1`
6-
==========================================
4+
======================
5+
The axes_grid1 toolkit
6+
======================
77
88
:mod:`.axes_grid1` provides the following features:
99
@@ -138,14 +138,14 @@
138138
parasite axes. To create a host axes, you may use ``host_subplot`` or
139139
``host_axes`` command.
140140
141-
Example 1. twinx
141+
Example 1: twinx
142142
~~~~~~~~~~~~~~~~
143143
144144
.. figure:: ../../gallery/axes_grid1/images/sphx_glr_parasite_simple_001.png
145145
:target: ../../gallery/axes_grid1/parasite_simple.html
146146
:align: center
147147
148-
Example 2. twin
148+
Example 2: twin
149149
~~~~~~~~~~~~~~~
150150
151151
``twin`` without a transform argument assumes that the parasite axes has the

tutorials/toolkits/axisartist.py

+23-25
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
r"""
2-
==============================
3-
Overview of axisartist toolkit
4-
==============================
5-
6-
The axisartist toolkit tutorial.
2+
======================
3+
The axisartist toolkit
4+
======================
75
86
.. warning::
97
*axisartist* uses a custom Axes class
@@ -267,14 +265,14 @@
267265
268266
1. Changing tick locations and label.
269267
270-
Same as the original Matplotlib's axes::
268+
Same as the original Matplotlib's axes::
271269
272-
ax.set_xticks([1, 2, 3])
270+
ax.set_xticks([1, 2, 3])
273271
274272
2. Changing axis properties like color, etc.
275273
276-
Change the properties of appropriate artists. For example, to change
277-
the color of the ticklabels::
274+
Change the properties of appropriate artists. For example, to change
275+
the color of the ticklabels::
278276
279277
ax.axis["left"].major_ticklabels.set_color("r")
280278
@@ -340,18 +338,18 @@
340338
default setting of above properties for each, "bottom", "left", "top",
341339
and "right" axis.
342340
343-
========== =========== ========= ========== ========= ==========
344-
? ? left bottom right top
345-
---------- ----------- --------- ---------- --------- ----------
346-
axislabel direction '-' '+' '+' '-'
347-
axislabel rotation 180 0 0 180
348-
axislabel va center top center bottom
349-
axislabel ha right center right center
350-
ticklabel direction '-' '+' '+' '-'
351-
ticklabels rotation 90 0 -90 180
352-
ticklabel ha right center right center
353-
ticklabel va center baseline center baseline
354-
========== =========== ========= ========== ========= ==========
341+
========== =========== ========= ========== ========= ==========
342+
? ? left bottom right top
343+
---------- ----------- --------- ---------- --------- ----------
344+
axislabel direction '-' '+' '+' '-'
345+
axislabel rotation 180 0 0 180
346+
axislabel va center top center bottom
347+
axislabel ha right center right center
348+
ticklabel direction '-' '+' '+' '-'
349+
ticklabels rotation 90 0 -90 180
350+
ticklabel ha right center right center
351+
ticklabel va center baseline center baseline
352+
========== =========== ========= ========== ========= ==========
355353
356354
And, 'set_axis_direction("top")' means to adjust the text rotation
357355
etc, for settings suitable for "top" axis. The concept of axis
@@ -490,10 +488,10 @@ def inv_tr(x, y):
490488
# has a cycle of 360 degree.
491489
# The second coordinate (latitude, but radius in polar) has a minimum of 0
492490
extreme_finder = angle_helper.ExtremeFinderCycle(20, 20,
493-
lon_cycle = 360,
494-
lat_cycle = None,
495-
lon_minmax = None,
496-
lat_minmax = (0, np.inf),
491+
lon_cycle=360,
492+
lat_cycle=None,
493+
lon_minmax=None,
494+
lat_minmax=(0, np.inf),
497495
)
498496
499497
# Find a grid values appropriate for the coordinate (degree,

tutorials/toolkits/mplot3d.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
===================
3-
The mplot3d Toolkit
3+
The mplot3d toolkit
44
===================
55
66
Generating 3D plots using the mplot3d toolkit.

0 commit comments

Comments
 (0)