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

Skip to content

Commit 68ade78

Browse files
resurrect axes_grid1 doc
1 parent 304154c commit 68ade78

File tree

19 files changed

+118
-53
lines changed

19 files changed

+118
-53
lines changed

doc/api/api_changes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Changed function signatures
6262
kwarg ``fig`` to `.GridSpec.get_subplot_params` is
6363
deprecated, use ``figure`` instead.
6464

65-
Using `.pyplot.axes` with an `.Axes` as argument is deprecated. This sets
65+
Using `.pyplot.axes` with an `~matplotlib.axes.Axes` as argument is deprecated. This sets
6666
the current axes, i.e. it has the same effect as `.pyplot.sca`. For clarity
6767
``plt.sca(ax)`` should be preferred over ``plt.axes(ax)``.
6868

@@ -848,7 +848,7 @@ Deprecation and removal
848848

849849
Color of Axes
850850
~~~~~~~~~~~~~
851-
The ``axisbg`` and ``axis_bgcolor`` properties on ``Axes`` have been
851+
The ``axisbg`` and ``axis_bgcolor`` properties on *Axes* have been
852852
deprecated in favor of ``facecolor``.
853853

854854
GTK and GDK backends deprecated
@@ -1281,8 +1281,8 @@ algorithm that was not necessarily applicable to custom Axes. Three new private
12811281
methods, :meth:`~matplotlib.axes._base._AxesBase._get_view`,
12821282
:meth:`~matplotlib.axes._base._AxesBase._set_view`, and
12831283
:meth:`~matplotlib.axes._base._AxesBase._set_view_from_bbox`, allow for custom
1284-
``Axes`` classes to override the pan and zoom algorithms. Implementors of
1285-
custom ``Axes`` who override these methods may provide suitable behaviour for
1284+
*Axes* classes to override the pan and zoom algorithms. Implementors of
1285+
custom *Axes* who override these methods may provide suitable behaviour for
12861286
both pan and zoom as well as the view navigation buttons on the interactive
12871287
toolbars.
12881288

doc/api/toolkits/axes_grid.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Matplotlib axes_grid Toolkit API
1010
.. currentmodule:: mpl_toolkits
1111

1212
Axes Grid
13-
---------
13+
=========
1414
.. note::
1515

1616
There is an older version of the AxesGrid toolkit, ``axes_grid`` (instead of
@@ -20,9 +20,8 @@ Axes Grid
2020
see the `previous version of the docs
2121
<https://matplotlib.org/2.0.1/mpl_toolkits/axes_grid/index.html#toolkit-axesgrid-index>`_.
2222

23-
.. autosummary::
24-
:toctree: ../_as_gen
25-
:template: automodule.rst
2623

27-
axes_grid1
28-
axisartist
24+
25+
:ref:`toolkit_axisartist-index`
26+
27+
:ref:`toolkit_axesgrid1-index`

doc/mpl_toolkits/axes_grid1/index.rst renamed to doc/api/toolkits/axes_grid1.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,27 @@ See :ref:`axes_grid1_users-guide-index` for a guide on the usage of axes_grid1.
2222
has divided into two separate namespace (*axes_grid1* and *axisartist*).
2323
While *axes_grid* namespace is maintained for the backward compatibility,
2424
use of *axes_grid1* and *axisartist* is recommended.
25+
26+
27+
.. currentmodule:: mpl_toolkits
28+
29+
.. _toolkit-axes-grid1-api:
30+
31+
:mod:`mpl_toolkits.axes_grid1`
32+
===================================
33+
34+
.. autosummary::
35+
:toctree: ../_as_gen
36+
:template: automodule.rst
37+
38+
axes_grid1.anchored_artists
39+
axes_grid1.axes_divider
40+
axes_grid1.axes_grid
41+
axes_grid1.axes_rgb
42+
axes_grid1.axes_size
43+
axes_grid1.colorbar
44+
axes_grid1.inset_locator
45+
axes_grid1.mpl_axes
46+
axes_grid1.parasite_axes
47+
48+

doc/mpl_toolkits/axisartist/index.rst renamed to doc/api/toolkits/axisartist.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,29 @@ mpl's Axis class. This change was strongly motivated to support curvilinear grid
1111

1212
You can find a tutorial describing usage of axisartist at
1313
:ref:`axisartist_users-guide-index`.
14+
15+
16+
.. currentmodule:: mpl_toolkits
17+
18+
.. _toolkit-axisartist-api:
19+
20+
:mod:`mpl_toolkits.axisartist`
21+
===================================
22+
23+
.. autosummary::
24+
:toctree: ../_as_gen
25+
:template: automodule.rst
26+
27+
axisartist.angle_helper
28+
axisartist.axes_divider
29+
axisartist.axes_grid
30+
axisartist.axes_rgb
31+
axisartist.axis_artist
32+
axisartist.axisline_style
33+
axisartist.axislines
34+
axisartist.clip_path
35+
axisartist.floating_axes
36+
axisartist.grid_finder
37+
axisartist.grid_helper_curvelinear
38+
axisartist.parasite_axes
39+

doc/mpl_toolkits/index.rst renamed to doc/api/toolkits/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ lighter weight solution for some use cases. Check out the
2424
:ref:`mplot3d tutorial <sphx_glr_tutorials_toolkits_mplot3d.py>` for more
2525
information.
2626

27-
.. figure:: ../gallery/mplot3d/images/sphx_glr_contourf3d_2_001.png
28-
:target: ../gallery/mplot3d/contourf3d_2.html
27+
.. figure:: ../../gallery/mplot3d/images/sphx_glr_contourf3d_2_001.png
28+
:target: ../../gallery/mplot3d/contourf3d_2.html
2929
:align: center
3030
:scale: 50
3131

@@ -54,7 +54,7 @@ collection of helper classes for displaying multiple axes in Matplotlib.
5454
.. toctree::
5555
:maxdepth: 2
5656

57-
axes_grid1/index.rst
57+
axes_grid1.rst
5858

5959

6060
.. _toolkit_axisartist:
@@ -68,7 +68,7 @@ a custom Axes class that is meant to support curvilinear grids.
6868
.. toctree::
6969
:maxdepth: 2
7070

71-
axisartist/index.rst
71+
axisartist.rst
7272

7373

7474
API
File renamed without changes.

doc/mpl_toolkits/mplot3d/index.rst renamed to doc/api/toolkits/mplot3d/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The resulting graph will have the same look and feel as regular 2D plots.
1414
See the :ref:`mplot3d tutorial <sphx_glr_tutorials_toolkits_mplot3d.py>` for
1515
more information on how to use this toolkit.
1616

17-
.. image:: ../../_static/demo_mplot3d.png
17+
.. image:: /_static/demo_mplot3d.png
1818

1919
The interactive backends also provide the ability to rotate and zoom
2020
the 3D scene. One can rotate the 3D scene by simply clicking-and-dragging

doc/contents.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Overview
1616

1717
users/index.rst
1818
faq/index.rst
19-
mpl_toolkits/index.rst
19+
api/toolkits/index.rst
2020
resources/index.rst
2121
thirdpartypackages/index.rst
2222
api/index.rst

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ require changes to your existing code is logged in the :doc:`API changes
142142
Toolkits
143143
========
144144

145-
Matplotlib ships with several add-on :doc:`toolkits <mpl_toolkits/index>`,
145+
Matplotlib ships with several add-on :doc:`toolkits <api/toolkits/index>`,
146146
including 3d plotting with `mplot3d`, axes helpers in `axes_grid1` and axis
147147
helpers in `axisartist`.
148148

doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ goto end
3535
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3636

3737
:end
38-
popd
38+
popd

0 commit comments

Comments
 (0)