Skip to content

Commit 6cae847

Browse files
committed
updating cross-refs and adding sphinx-gallery version dependency
1 parent a023bc1 commit 6cae847

16 files changed

+25
-35
lines changed

doc-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ mock
1313
numpydoc
1414
pillow
1515
scipy
16-
sphinx-gallery
16+
sphinx-gallery>=0.1.12

doc/_templates/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ <h1>Introduction</h1>
5555
interface toolkits.</p>
5656

5757
<div class="responsive_screenshots">
58-
<a a href="{{ pathto('tutorials/01_introductory/sample_plots') }}">
58+
<a a href="{{ pathto('tutorials/introductory/sample_plots') }}">
5959
<div class="responsive_subfig">
6060
<img align="middle", src="{{ pathto('_images/sphx_glr_membrane_thumb.png', 1) }}", border="0", alt="screenshots"/>
6161
</div>
@@ -75,7 +75,7 @@ <h1>Introduction</h1>
7575
<p>Matplotlib tries to make easy things easy and hard things possible.
7676
You can generate plots, histograms, power spectra, bar charts,
7777
errorcharts, scatterplots, etc., with just a few lines of code.
78-
For examples, see the <a href="{{ pathto('tutorials/01_introductory/sample_plots')
78+
For examples, see the <a href="{{ pathto('tutorials/introductory/sample_plots')
7979
}}">sample plots</a> and <a href="{{ pathto('gallery/index') }}">thumbnail</a> gallery.</p>
8080

8181
<p>For simple plotting the <tt>pyplot</tt> module provides a

doc/api/pyplot_summary.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The Pyplot API
88
The :mod:`matplotlib.pyplot` module contains functions that allow you to generate
99
many kinds of plots quickly. For examples that showcase the use
1010
of the :mod:`matplotlib.pyplot` module, see the
11-
:ref:`sphx_glr_tutorials_01_introductory_pyplot.py`
11+
:ref:`sphx_glr_tutorials_introductory_pyplot.py`
1212
or the :ref:`pyplots_examples`. We also recommend that you look into
1313
the object-oriented approach to plotting, described below.
1414

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _check_deps():
105105
'../tutorials/introductory',
106106
'../tutorials/intermediate',
107107
'../tutorials/advanced']
108-
for folder in glob('../examples/*') + glob('../tutorials/*'):
108+
for folder in sorted(glob('../examples/*') + glob('../tutorials/*')):
109109
if not os.path.isdir(folder) or folder in explicit_order_folders:
110110
continue
111111
explicit_order_folders.append(folder)

doc/users/intro.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ The Matplotlib code is conceptually divided into three parts: the
6262
*pylab interface* is the set of functions provided by
6363
:mod:`matplotlib.pylab` which allow the user to create plots with code
6464
quite similar to MATLAB figure generating code
65-
(:ref:`sphx_glr_tutorials_01_introductory_pyplot.py`). The *Matplotlib frontend* or *Matplotlib
65+
(:ref:`sphx_glr_tutorials_introductory_pyplot.py`). The *Matplotlib frontend* or *Matplotlib
6666
API* is the set of classes that do the heavy lifting, creating and
6767
managing figures, text, lines, plots and so on
68-
(:ref:`sphx_glr_tutorials_02_intermediate_artists.py`). This is an abstract interface that knows
68+
(:ref:`sphx_glr_tutorials_intermediate_artists.py`). This is an abstract interface that knows
6969
nothing about output. The *backends* are device-dependent drawing
7070
devices, aka renderers, that transform the frontend representation to
7171
hardcopy or a display device (:ref:`what-is-a-backend`). Example

doc/users/prev_whats_new/whats_new_0.99.rst

+4-8
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ New in matplotlib 0.99
1111
New documentation
1212
-----------------
1313

14-
Jae-Joon Lee has written two new guides :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py`
14+
Jae-Joon Lee has written two new guides :ref:`sphx_glr_tutorials_intermediate_legend_guide.py`
1515
and :ref:`plotting-guide-annotation`. Michael Sarahan has written
16-
:ref:`sphx_glr_tutorials_01_introductory_images.py`. John Hunter has written two new tutorials on
17-
working with paths and transformations: :ref:`sphx_glr_tutorials_03_advanced_path_tutorial.py` and
18-
:ref:`sphx_glr_tutorials_03_advanced_transforms_tutorial.py`.
16+
:ref:`sphx_glr_tutorials_introductory_images.py`. John Hunter has written two new tutorials on
17+
working with paths and transformations: :ref:`sphx_glr_tutorials_advanced_path_tutorial.py` and
18+
:ref:`sphx_glr_tutorials_advanced_transforms_tutorial.py`.
1919

2020
.. _whats-new-mplot3d:
2121

@@ -74,7 +74,3 @@ well as "detach" the spine to offset it away from the data. See
7474
:scale: 50
7575

7676
Whats New 99 Spines
77-
78-
79-
80-

doc/users/prev_whats_new/whats_new_1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Sophisticated subplot grid layout
2323

2424
Jae-Joon Lee has written :mod:`~matplotlib.gridspec`, a new module for
2525
doing complex subplot layouts, featuring row and column spans and
26-
more. See :ref:`sphx_glr_tutorials_02_intermediate_gridspec.py` for a tutorial overview.
26+
more. See :ref:`sphx_glr_tutorials_intermediate_gridspec.py` for a tutorial overview.
2727

2828
.. figure:: ../../gallery/userdemo/images/sphx_glr_demo_gridspec01_000.png
2929
:target: ../../gallery/userdemo/demo_gridspec01.html

doc/users/prev_whats_new/whats_new_1.1.rst

+2-6
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The usage of this functionality can be as simple as ::
8787

8888
and it will adjust the spacing between subplots
8989
so that the axis labels do not overlap with neighboring subplots. A
90-
:ref:`sphx_glr_tutorials_02_intermediate_tight_layout_guide.py` has been created to show how to use
90+
:ref:`sphx_glr_tutorials_intermediate_tight_layout_guide.py` has been created to show how to use
9191
this new tool.
9292

9393
PyQT4, PySide, and IPython
@@ -116,7 +116,7 @@ legends for complex plots such as :meth:`~matplotlib.pyplot.stem` plots
116116
will now display correctly. Second, the 'best' placement of a legend has
117117
been improved in the presence of NANs.
118118

119-
See the :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for more detailed explanation and
119+
See the :ref:`sphx_glr_tutorials_intermediate_legend_guide.py` for more detailed explanation and
120120
examples.
121121

122122
.. figure:: ../../gallery/text_labels_and_annotations/images/sphx_glr_legend_demo_004.png
@@ -228,7 +228,3 @@ Other improvements
228228
other colormaps :ref:`here <color-colormaps_reference>`.
229229

230230
* Many bug fixes and documentation improvements.
231-
232-
233-
234-

doc/users/prev_whats_new/whats_new_1.4.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ instead of ``:context:`` any time you want to reset the context.
410410

411411
Legend and PathEffects documentation
412412
------------------------------------
413-
The :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` and :ref:`sphx_glr_tutorials_03_advanced_patheffects_guide.py` have both been
413+
The :ref:`sphx_glr_tutorials_intermediate_legend_guide.py` and :ref:`sphx_glr_tutorials_advanced_patheffects_guide.py` have both been
414414
updated to better reflect the full potential of each of these powerful
415415
features.
416416

@@ -427,5 +427,3 @@ rectangle stay on the axes after you release the mouse.
427427
GAE integration
428428
---------------
429429
Matplotlib will now run on google app engine.
430-
431-

doc/users/shell.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ are going to need to understand what a matplotlib backend is
9292
With the TkAgg backend, which uses the Tkinter user interface toolkit,
9393
you can use matplotlib from an arbitrary non-gui python shell. Just set your
9494
``backend : TkAgg`` and ``interactive : True`` in your
95-
:file:`matplotlibrc` file (see :ref:`sphx_glr_tutorials_01_introductory_customizing.py`) and fire
95+
:file:`matplotlibrc` file (see :ref:`sphx_glr_tutorials_introductory_customizing.py`) and fire
9696
up python. Then::
9797

9898
>>> from pylab import *

lib/matplotlib/legend.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Most users would normally create a legend via the
99
:meth:`~matplotlib.axes.Axes.legend` function. For more details on legends
1010
there is also a :ref:`legend guide
11-
<sphx_glr_tutorials_02_intermediate_legend_guide.py>`.
11+
<sphx_glr_tutorials_intermediate_legend_guide.py>`.
1212
1313
The Legend class can be considered as a container of legend handles
1414
and legend texts. Creation of corresponding legend handles from the
@@ -19,7 +19,7 @@
1919
Note that not all kinds of artist are supported by the legend yet by default
2020
but it is possible to extend the legend handler's capabilities to support
2121
arbitrary objects. See the :ref:`legend guide
22-
<sphx_glr_tutorials_02_intermediate_legend_guide.py>` for more information.
22+
<sphx_glr_tutorials_intermediate_legend_guide.py>` for more information.
2323
2424
"""
2525
from __future__ import (absolute_import, division, print_function,

lib/matplotlib/legend_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This module defines default legend handlers.
33
44
It is strongly encouraged to have read the :ref:`legend guide
5-
<sphx_glr_tutorials_02_intermediate_legend_guide.py>` before this documentation.
5+
<sphx_glr_tutorials_intermediate_legend_guide.py>` before this documentation.
66
77
Legend handlers are expected to be a callable object with a following
88
signature. ::

tutorials/introductory/lifecycle.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
The second is based on MATLAB and uses
2727
a state-based interface. This is encapsulated in the :mod:`pyplot`
2828
module. See the :ref:`pyplot tutorials
29-
<sphx_glr_tutorials_01_introductory_pyplot.py>`
29+
<sphx_glr_tutorials_introductory_pyplot.py>`
3030
for a more in-depth look at the pyplot interface.
3131
3232
Most of the terms are straightforward but the main thing to remember
@@ -149,7 +149,7 @@
149149
# that we create. To do this we'll set the ``autolayout`` value of our
150150
# rcParams. For more information on controlling the style, layout, and
151151
# other features of plots with rcParams, see
152-
# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`.
152+
# :ref:`sphx_glr_tutorials_introductory_customizing.py`.
153153

154154
plt.rcParams.update({'figure.autolayout': True})
155155

tutorials/introductory/usage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def my_plotter(ax, data1, data2, param_dict):
314314
#
315315
#
316316
# #. The ``backend`` parameter in your ``matplotlibrc`` file (see
317-
# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`)::
317+
# :ref:`sphx_glr_tutorials_introductory_customizing.py`)::
318318
#
319319
# backend : WXAgg # use wxpython with antigrain (agg) rendering
320320
#
@@ -498,7 +498,7 @@ def my_plotter(ax, data1, data2, param_dict):
498498
# that are called, and on a state variable that determines whether
499499
# matplotlib is in "interactive mode". The default Boolean value is set
500500
# by the :file:`matplotlibrc` file, and may be customized like any other
501-
# configuration parameter (see :ref:`sphx_glr_tutorials_01_introductory_customizing.py`). It
501+
# configuration parameter (see :ref:`sphx_glr_tutorials_introductory_customizing.py`). It
502502
# may also be set via :func:`matplotlib.interactive`, and its
503503
# value may be queried via :func:`matplotlib.is_interactive`. Turning
504504
# interactive mode on and off in the middle of a stream of plotting

tutorials/text/mathtext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# (from (La)TeX), `STIX <http://www.stixfonts.org/>`_ fonts (with are designed
2424
# to blend well with Times), or a Unicode font that you provide. The mathtext
2525
# font can be selected with the customization variable ``mathtext.fontset`` (see
26-
# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`)
26+
# :ref:`sphx_glr_tutorials_introductory_customizing.py`)
2727
#
2828
# .. note::
2929
# On `"narrow" <http://wordaligned.org/articles/narrow-python>`_ builds

tutorials/text/usetex.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
external dependencies must all be located on your :envvar:`PATH`.
2727
2828
There are a couple of options to mention, which can be changed using :ref:`rc
29-
settings <sphx_glr_tutorials_01_introductory_customizing.py>`. Here is an example matplotlibrc file::
29+
settings <sphx_glr_tutorials_introductory_customizing.py>`. Here is an example matplotlibrc file::
3030
3131
font.family : serif
3232
font.serif : Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman

0 commit comments

Comments
 (0)