8000 Cleanup the text of two mpl_toolkits examples. by anntzer · Pull Request #13197 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Cleanup the text of two mpl_toolkits examples. #13197

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
Jan 16, 2019
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
26 changes: 12 additions & 14 deletions examples/axisartist/demo_floating_axes.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
"""
==================
Demo Floating Axes
==================

Demo of the floating axes.

This demo shows features of functions in floating_axes:
* Using scatter function and bar function with changing the
shape of the plot.
* Using GridHelperCurveLinear to rotate the plot and set the
boundary of the plot.
* Using FloatingSubplot to create a subplot using the return
value from GridHelperCurveLinear.
* Making sector plot by adding more features to GridHelperCurveLinear.
=====================================================
:mod:`mpl_toolkits.axisartist.floating_axes` features
=====================================================

Demonstration of features of the :mod:`.floating_axes` module:

* Using `scatter` and `bar` with changing the shape of the plot.
* Using `GridHelperCurveLinear` to rotate the plot and set the plot boundary.
* Using `FloatingSubplot` to create a subplot using the return value from
`GridHelperCurveLinear`.
* Making a sector plot by adding more features to `GridHelperCurveLinear`.
"""

from matplotlib.transforms import Affine2D
import mpl_toolkits.axisartist.floating_axes as floating_axes
import numpy as np
Expand Down
20 changes: 11 additions & 9 deletions examples/axisartist/demo_parasite_axes.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
"""
==================
Demo Parasite Axes
Parasite Axes demo
==================

Create a parasite axes. Such axes would share the x scale with a host axes,
but show a different scale in y direction.

Note that this approach uses the `~mpl_toolkits.axes_grid1.parasite_axes`\'
`~.mpl_toolkits.axes_grid1.parasite_axes.HostAxes` and
`~.mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`. An alternative
approach using the :ref:`toolkit_axesgrid1-index` and
:ref:`toolkit_axisartist-index`
is found in the :doc:`/gallery/axisartist/demo_parasite_axes2` example.
An alternative approach using the usual matplotlib subplots is shown in
the :doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.
This approach uses `mpl_toolkits.axes_grid1.parasite_axes.HostAxes` and
`mpl_toolkits.axes_grid1.parasite_axes.ParasiteAxes`.

An alternative approach using standard Matplotlib subplots is shown in the
:doc:`/gallery/ticks_and_spines/multiple_yaxis_with_spines` example.

An alternative approach using the :ref:`toolkit_axesgrid1-index`
and :ref:`toolkit_axisartist-index` is found in the
:doc:`/gallery/axisartist/demo_parasite_axes2` example.
"""

from mpl_toolkits.axisartist.parasite_axes import HostAxes, ParasiteAxes
import matplotlib.pyplot as plt

Expand Down
0