Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9a3c2b

Browse filesBrowse files
authored
Merge pull request #24512 from anntzer/tmtt
Tweak markup in toolkits tutorials.
2 parents 8c3736f + bcf12b4 commit d9a3c2b
Copy full SHA for d9a3c2b

File tree

3 files changed

+29
-31
lines changed
Filter options

3 files changed

+29
-31
lines changed

‎tutorials/toolkits/axes_grid.py

Copy file name to clipboardExpand all lines: tutorials/toolkits/axes_grid.py
+5-5Lines changed: 5 additions & 5 deletions
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

Copy file name to clipboardExpand all lines: tutorials/toolkits/axisartist.py
+23-25Lines changed: 23 additions & 25 deletions
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

Copy file name to clipboardExpand all lines: tutorials/toolkits/mplot3d.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.