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

Skip to content

Tweak markup in toolkits tutorials. #24512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tutorials/toolkits/axes_grid.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
r"""
.. _axes_grid1_users-guide-index:

==========================================
Overview of :mod:`mpl_toolkits.axes_grid1`
==========================================
======================
The axes_grid1 toolkit
======================

:mod:`.axes_grid1` provides the following features:

Expand Down Expand Up @@ -138,14 +138,14 @@
parasite axes. To create a host axes, you may use ``host_subplot`` or
``host_axes`` command.

Example 1. twinx
Example 1: twinx
~~~~~~~~~~~~~~~~

.. figure:: ../../gallery/axes_grid1/images/sphx_glr_parasite_simple_001.png
:target: ../../gallery/axes_grid1/parasite_simple.html
:align: center

Example 2. twin
Example 2: twin
~~~~~~~~~~~~~~~

``twin`` without a transform argument assumes that the parasite axes has the
Expand Down
48 changes: 23 additions & 25 deletions tutorials/toolkits/axisartist.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
r"""
==============================
Overview of axisartist toolkit
==============================

The axisartist toolkit tutorial.
======================
The axisartist toolkit
======================

.. warning::
*axisartist* uses a custom Axes class
Expand Down Expand Up @@ -267,14 +265,14 @@

1. Changing tick locations and label.

Same as the original Matplotlib's axes::
Same as the original Matplotlib's axes::

ax.set_xticks([1, 2, 3])
ax.set_xticks([1, 2, 3])

2. Changing axis properties like color, etc.

Change the properties of appropriate artists. For example, to change
the color of the ticklabels::
Change the properties of appropriate artists. For example, to change
the color of the ticklabels::

ax.axis["left"].major_ticklabels.set_color("r")

Expand Down Expand Up @@ -340,18 +338,18 @@
default setting of above properties for each, "bottom", "left", "top",
and "right" axis.

========== =========== ========= ========== ========= ==========
? ? left bottom right top
---------- ----------- --------- ---------- --------- ----------
axislabel direction '-' '+' '+' '-'
axislabel rotation 180 0 0 180
axislabel va center top center bottom
axislabel ha right center right center
ticklabel direction '-' '+' '+' '-'
ticklabels rotation 90 0 -90 180
ticklabel ha right center right center
ticklabel va center baseline center baseline
========== =========== ========= ========== ========= ==========
========== =========== ========= ========== ========= ==========
? ? left bottom right top
---------- ----------- --------- ---------- --------- ----------
axislabel direction '-' '+' '+' '-'
axislabel rotation 180 0 0 180
axislabel va center top center bottom
axislabel ha right center right center
ticklabel direction '-' '+' '+' '-'
ticklabels rotation 90 0 -90 180
ticklabel ha right center right center
ticklabel va center baseline center baseline
========== =========== ========= ========== ========= ==========

And, 'set_axis_direction("top")' means to adjust the text rotation
etc, for settings suitable for "top" axis. The concept of axis
Expand Down Expand Up @@ -490,10 +488,10 @@ def inv_tr(x, y):
# has a cycle of 360 degree.
# The second coordinate (latitude, but radius in polar) has a minimum of 0
extreme_finder = angle_helper.ExtremeFinderCycle(20, 20,
lon_cycle = 360,
lat_cycle = None,
lon_minmax = None,
lat_minmax = (0, np.inf),
lon_cycle=360,
lat_cycle=None,
lon_minmax=None,
lat_minmax=(0, np.inf),
)

# Find a grid values appropriate for the coordinate (degree,
Expand Down
2 changes: 1 addition & 1 deletion tutorials/toolkits/mplot3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
===================
The mplot3d Toolkit
The mplot3d toolkit
===================

Generating 3D plots using the mplot3d toolkit.
Expand Down