File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
1715from matplotlib .transforms import Affine2D
1816import mpl_toolkits .axisartist .floating_axes as floating_axes
1917import numpy as np
Original file line number Diff line number Diff line change 11"""
22==================
3- Demo Parasite Axes
3+ Parasite Axes demo
44==================
55
66Create a parasite axes. Such axes would share the x scale with a host axes,
77but 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+
1820from mpl_toolkits .axisartist .parasite_axes import HostAxes , ParasiteAxes
1921import matplotlib .pyplot as plt
2022
You can’t perform that action at this time.
0 commit comments