File tree Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Expand file tree Collapse file tree 2 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 1
1
"""
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`.
16
13
"""
14
+
17
15
from matplotlib .transforms import Affine2D
18
16
import mpl_toolkits .axisartist .floating_axes as floating_axes
19
17
import numpy as np
Original file line number Diff line number Diff line change 1
1
"""
2
2
==================
3
- Demo Parasite Axes
3
+ Parasite Axes demo
4
4
==================
5
5
6
6
Create a parasite axes. Such axes would share the x scale with a host axes,
7
7
but show a different scale in y direction.
8
8
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.
17
18
"""
19
+
18
20
from mpl_toolkits .axisartist .parasite_axes import HostAxes , ParasiteAxes
19
21
import matplotlib .pyplot as plt
20
22
You can’t perform that action at this time.
0 commit comments