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

Skip to content

Commit 0f4e348

Browse files
authored
Merge pull request #13197 from anntzer/toolkitsexamples
Cleanup the text of two mpl_toolkits examples.
2 parents b28c2e6 + cd3d28f commit 0f4e348

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

examples/axisartist/demo_floating_axes.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
"""
2-
==================
3-
Demo Floating Axes
4-
==================
5-
6-
Demo of the floating axes.
7-
8-
This demo shows features of functions in floating_axes:
9-
* Using scatter function and bar function with changing the
10-
shape of the plot.
11-
* Using GridHelperCurveLinear to rotate the plot and set the
12-
boundary of the plot.
13-
* Using FloatingSubplot to create a subplot using the return
14-
value from GridHelperCurveLinear.
15-
* Making sector plot by adding more features to GridHelperCurveLinear.
2+
=====================================================
3+
:mod:`mpl_toolkits.axisartist.floating_axes` features
4+
=====================================================
5+
6+
Demonstration of features of the :mod:`.floating_axes` module:
7+
8+
* Using `scatter` and `bar` with changing the shape of the plot.
9+
* Using `GridHelperCurveLinear` to rotate the plot and set the plot boundary.
10+
* Using `FloatingSubplot` to create a subplot using the return value from
11+
`GridHelperCurveLinear`.
12+
* Making a sector plot by adding more features to `GridHelperCurveLinear`.
1613
"""
14+
1715
from matplotlib.transforms import Affine2D
1816
import mpl_toolkits.axisartist.floating_axes as floating_axes
1917
import numpy as np

examples/axisartist/demo_parasite_axes.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
"""
22
==================
3-
Demo Parasite Axes
3+
Parasite Axes demo
44
==================
55
66
Create a parasite axes. Such axes would share the x scale with a host axes,
77
but show a different scale in y direction.
88
9-
Note that this approach uses the `~mpl_toolkits.axes_grid1.parasite_axes`\'
10-
`~.mpl_toolkits.axes_grid1.parasite_axes.HostAxes` and
11-
`~.mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`. An alternative
12-
approach using the :ref:`toolkit_axesgrid1-index` and
13-
:ref:`toolkit_axisartist-index`
14-
is found in the :doc:`/gallery/axisartist/demo_parasite_axes2` example.
15-
An alternative approach using the usual matplotlib subplots is shown in
16-
the :doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.
9+
This approach uses `mpl_toolkits.axes_grid1.parasite_axes.HostAxes` and
10+
`mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`.
11+
12+
An alternative approach using standard Matplotlib subplots is shown in the
13+
:doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.
14+
15+
An alternative approach using the :ref:`toolkit_axesgrid1-index`
16+
and :ref:`toolkit_axisartist-index` is found in the
17+
:doc:`/gallery/axisartist/demo_parasite_axes2` example.
1718
"""
19+
1820
from mpl_toolkits.axisartist.parasite_axes import HostAxes, ParasiteAxes
1921
import matplotlib.pyplot as plt
2022

0 commit comments

Comments
 (0)