@@ -75,7 +75,7 @@ Introduction
Matplotlib tries to make easy things easy and hard things possible.
You can generate plots, histograms, power spectra, bar charts,
errorcharts, scatterplots, etc., with just a few lines of code.
- For examples, see the sample plots and thumbnail gallery.
For simple plotting the pyplot module provides a
diff --git a/doc/api/pyplot_summary.rst b/doc/api/pyplot_summary.rst
index 46ae71984367..db513d8c2660 100644
--- a/doc/api/pyplot_summary.rst
+++ b/doc/api/pyplot_summary.rst
@@ -8,7 +8,7 @@ The Pyplot API
The :mod:`matplotlib.pyplot` module contains functions that allow you to generate
many kinds of plots quickly. For examples that showcase the use
of the :mod:`matplotlib.pyplot` module, see the
-:ref:`sphx_glr_tutorials_01_introductory_pyplot.py`
+:ref:`sphx_glr_tutorials_introductory_pyplot.py`
or the :ref:`pyplots_examples`. We also recommend that you look into
the object-oriented approach to plotting, described below.
diff --git a/doc/conf.py b/doc/conf.py
index e147c927c17c..7189e5186c6d 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -105,7 +105,7 @@ def _check_deps():
'../tutorials/introductory',
'../tutorials/intermediate',
'../tutorials/advanced']
-for folder in glob('../examples/*') + glob('../tutorials/*'):
+for folder in sorted(glob('../examples/*') + glob('../tutorials/*')):
if not os.path.isdir(folder) or folder in explicit_order_folders:
continue
explicit_order_folders.append(folder)
diff --git a/doc/users/intro.rst b/doc/users/intro.rst
index 76b5c3bf1ecf..f20d669af94b 100644
--- a/doc/users/intro.rst
+++ b/doc/users/intro.rst
@@ -62,10 +62,10 @@ The Matplotlib code is conceptually divided into three parts: the
*pylab interface* is the set of functions provided by
:mod:`matplotlib.pylab` which allow the user to create plots with code
quite similar to MATLAB figure generating code
-(:ref:`sphx_glr_tutorials_01_introductory_pyplot.py`). The *Matplotlib frontend* or *Matplotlib
+(:ref:`sphx_glr_tutorials_introductory_pyplot.py`). The *Matplotlib frontend* or *Matplotlib
API* is the set of classes that do the heavy lifting, creating and
managing figures, text, lines, plots and so on
-(:ref:`sphx_glr_tutorials_02_intermediate_artists.py`). This is an abstract interface that knows
+(:ref:`sphx_glr_tutorials_intermediate_artists.py`). This is an abstract interface that knows
nothing about output. The *backends* are device-dependent drawing
devices, aka renderers, that transform the frontend representation to
hardcopy or a display device (:ref:`what-is-a-backend`). Example
diff --git a/doc/users/prev_whats_new/whats_new_0.99.rst b/doc/users/prev_whats_new/whats_new_0.99.rst
index 30f0de2e7665..8ae2055a751e 100644
--- a/doc/users/prev_whats_new/whats_new_0.99.rst
+++ b/doc/users/prev_whats_new/whats_new_0.99.rst
@@ -11,11 +11,11 @@ New in matplotlib 0.99
New documentation
-----------------
-Jae-Joon Lee has written two new guides :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py`
+Jae-Joon Lee has written two new guides :ref:`sphx_glr_tutorials_intermediate_legend_guide.py`
and :ref:`plotting-guide-annotation`. Michael Sarahan has written
-:ref:`sphx_glr_tutorials_01_introductory_images.py`. John Hunter has written two new tutorials on
-working with paths and transformations: :ref:`sphx_glr_tutorials_03_advanced_path_tutorial.py` and
-:ref:`sphx_glr_tutorials_03_advanced_transforms_tutorial.py`.
+:ref:`sphx_glr_tutorials_introductory_images.py`. John Hunter has written two new tutorials on
+working with paths and transformations: :ref:`sphx_glr_tutorials_advanced_path_tutorial.py` and
+:ref:`sphx_glr_tutorials_advanced_transforms_tutorial.py`.
.. _whats-new-mplot3d:
diff --git a/doc/users/prev_whats_new/whats_new_1.0.rst b/doc/users/prev_whats_new/whats_new_1.0.rst
index e6bff2ca11cf..2f1185bbeb92 100644
--- a/doc/users/prev_whats_new/whats_new_1.0.rst
+++ b/doc/users/prev_whats_new/whats_new_1.0.rst
@@ -23,7 +23,7 @@ Sophisticated subplot grid layout
Jae-Joon Lee has written :mod:`~matplotlib.gridspec`, a new module for
doing complex subplot layouts, featuring row and column spans and
-more. See :ref:`sphx_glr_tutorials_02_intermediate_gridspec.py` for a tutorial overview.
+more. See :ref:`sphx_glr_tutorials_intermediate_gridspec.py` for a tutorial overview.
.. figure:: ../../gallery/userdemo/images/sphx_glr_demo_gridspec01_000.png
:target: ../../gallery/userdemo/demo_gridspec01.html
diff --git a/doc/users/prev_whats_new/whats_new_1.1.rst b/doc/users/prev_whats_new/whats_new_1.1.rst
index 1247135fc15a..489b8b6ab60a 100644
--- a/doc/users/prev_whats_new/whats_new_1.1.rst
+++ b/doc/users/prev_whats_new/whats_new_1.1.rst
@@ -87,7 +87,7 @@ The usage of this functionality can be as simple as ::
and it will adjust the spacing between subplots
so that the axis labels do not overlap with neighboring subplots. A
-:ref:`sphx_glr_tutorials_02_intermediate_tight_layout_guide.py` has been created to show how to use
+:ref:`sphx_glr_tutorials_intermediate_tight_layout_guide.py` has been created to show how to use
this new tool.
PyQT4, PySide, and IPython
@@ -116,7 +116,7 @@ legends for complex plots such as :meth:`~matplotlib.pyplot.stem` plots
will now display correctly. Second, the 'best' placement of a legend has
been improved in the presence of NANs.
-See the :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` for more detailed explanation and
+See the :ref:`sphx_glr_tutorials_intermediate_legend_guide.py` for more detailed explanation and
examples.
.. figure:: ../../gallery/text_labels_and_annotations/images/sphx_glr_legend_demo_004.png
@@ -228,7 +228,3 @@ Other improvements
other colormaps :ref:`here `.
* Many bug fixes and documentation improvements.
-
-
-
-
diff --git a/doc/users/prev_whats_new/whats_new_1.4.rst b/doc/users/prev_whats_new/whats_new_1.4.rst
index 7aac6495c2e0..1711f06b858c 100644
--- a/doc/users/prev_whats_new/whats_new_1.4.rst
+++ b/doc/users/prev_whats_new/whats_new_1.4.rst
@@ -410,7 +410,7 @@ instead of ``:context:`` any time you want to reset the context.
Legend and PathEffects documentation
------------------------------------
-The :ref:`sphx_glr_tutorials_02_intermediate_legend_guide.py` and :ref:`sphx_glr_tutorials_03_advanced_patheffects_guide.py` have both been
+The :ref:`sphx_glr_tutorials_intermediate_legend_guide.py` and :ref:`sphx_glr_tutorials_advanced_patheffects_guide.py` have both been
updated to better reflect the full potential of each of these powerful
features.
@@ -427,5 +427,3 @@ rectangle stay on the axes after you release the mouse.
GAE integration
---------------
Matplotlib will now run on google app engine.
-
-
diff --git a/doc/users/shell.rst b/doc/users/shell.rst
index 7635ccda971e..d3b3c57b4b77 100644
--- a/doc/users/shell.rst
+++ b/doc/users/shell.rst
@@ -92,7 +92,7 @@ are going to need to understand what a matplotlib backend is
With the TkAgg backend, which uses the Tkinter user interface toolkit,
you can use matplotlib from an arbitrary non-gui python shell. Just set your
``backend : TkAgg`` and ``interactive : True`` in your
-:file:`matplotlibrc` file (see :ref:`sphx_glr_tutorials_01_introductory_customizing.py`) and fire
+:file:`matplotlibrc` file (see :ref:`sphx_glr_tutorials_introductory_customizing.py`) and fire
up python. Then::
>>> from pylab import *
diff --git a/lib/matplotlib/legend.py b/lib/matplotlib/legend.py
index e649741162cc..e83bcf21bffe 100644
--- a/lib/matplotlib/legend.py
+++ b/lib/matplotlib/legend.py
@@ -8,7 +8,7 @@
Most users would normally create a legend via the
:meth:`~matplotlib.axes.Axes.legend` function. For more details on legends
there is also a :ref:`legend guide
- `.
+ `.
The Legend class can be considered as a container of legend handles
and legend texts. Creation of corresponding legend handles from the
@@ -19,7 +19,7 @@
Note that not all kinds of artist are supported by the legend yet by default
but it is possible to extend the legend handler's capabilities to support
arbitrary objects. See the :ref:`legend guide
-` for more information.
+` for more information.
"""
from __future__ import (absolute_import, division, print_function,
diff --git a/lib/matplotlib/legend_handler.py b/lib/matplotlib/legend_handler.py
index d904c1faedb5..284c301f0e42 100644
--- a/lib/matplotlib/legend_handler.py
+++ b/lib/matplotlib/legend_handler.py
@@ -2,7 +2,7 @@
This module defines default legend handlers.
It is strongly encouraged to have read the :ref:`legend guide
-` before this documentation.
+` before this documentation.
Legend handlers are expected to be a callable object with a following
signature. ::
diff --git a/tutorials/introductory/lifecycle.py b/tutorials/introductory/lifecycle.py
index 800e767e8feb..68770cf9efe0 100644
--- a/tutorials/introductory/lifecycle.py
+++ b/tutorials/introductory/lifecycle.py
@@ -26,7 +26,7 @@
The second is based on MATLAB and uses
a state-based interface. This is encapsulated in the :mod:`pyplot`
module. See the :ref:`pyplot tutorials
-`
+`
for a more in-depth look at the pyplot interface.
Most of the terms are straightforward but the main thing to remember
@@ -149,7 +149,7 @@
# that we create. To do this we'll set the ``autolayout`` value of our
# rcParams. For more information on controlling the style, layout, and
# other features of plots with rcParams, see
-# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`.
+# :ref:`sphx_glr_tutorials_introductory_customizing.py`.
plt.rcParams.update({'figure.autolayout': True})
diff --git a/tutorials/introductory/usage.py b/tutorials/introductory/usage.py
index 8fac1fd56632..1b097eaae386 100644
--- a/tutorials/introductory/usage.py
+++ b/tutorials/introductory/usage.py
@@ -314,7 +314,7 @@ def my_plotter(ax, data1, data2, param_dict):
#
#
# #. The ``backend`` parameter in your ``matplotlibrc`` file (see
-# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`)::
+# :ref:`sphx_glr_tutorials_introductory_customizing.py`)::
#
# backend : WXAgg # use wxpython with antigrain (agg) rendering
#
@@ -498,7 +498,7 @@ def my_plotter(ax, data1, data2, param_dict):
# that are called, and on a state variable that determines whether
# matplotlib is in "interactive mode". The default Boolean value is set
# by the :file:`matplotlibrc` file, and may be customized like any other
-# configuration parameter (see :ref:`sphx_glr_tutorials_01_introductory_customizing.py`). It
+# configuration parameter (see :ref:`sphx_glr_tutorials_introductory_customizing.py`). It
# may also be set via :func:`matplotlib.interactive`, and its
# value may be queried via :func:`matplotlib.is_interactive`. Turning
# interactive mode on and off in the middle of a stream of plotting
diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py
index 85128e7efbaf..23141612b147 100644
--- a/tutorials/text/mathtext.py
+++ b/tutorials/text/mathtext.py
@@ -23,7 +23,7 @@
# (from (La)TeX), `STIX `_ fonts (with are designed
# to blend well with Times), or a Unicode font that you provide. The mathtext
# font can be selected with the customization variable ``mathtext.fontset`` (see
-# :ref:`sphx_glr_tutorials_01_introductory_customizing.py`)
+# :ref:`sphx_glr_tutorials_introductory_customizing.py`)
#
# .. note::
# On `"narrow" `_ builds
diff --git a/tutorials/text/usetex.py b/tutorials/text/usetex.py
index ffeb616ba74d..8ddf2277b56e 100644
--- a/tutorials/text/usetex.py
+++ b/tutorials/text/usetex.py
@@ -26,7 +26,7 @@
external dependencies must all be located on your :envvar:`PATH`.
There are a couple of options to mention, which can be changed using :ref:`rc
-settings `. Here is an example matplotlibrc file::
+settings `. Here is an example matplotlibrc file::
font.family : serif
font.serif : Times, Palatino, New Century Schoolbook, Bookman, Computer Modern Roman
From 0cb00eac14106959d74b6815afb7cf262358e63c Mon Sep 17 00:00:00 2001
From: Chris Holdgraf
Date: Thu, 3 Aug 2017 18:08:03 -0700
Subject: [PATCH 3/3] updating list
---
doc/conf.py | 15 ++++++++++++---
tutorials/introductory/usage.py | 4 ++--
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/doc/conf.py b/doc/conf.py
index 7189e5186c6d..fc82930d4f03 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -97,10 +97,19 @@ def _check_deps():
'pandas': ('http://pandas.pydata.org/pandas-docs/stable', None)
}
-explicit_order_folders = ['../examples/pyplots',
- '../examples/statistics',
+explicit_order_folders = [
+ '../examples/api',
+ '../examples/pyplots',
+ '../examples/subplots_axes_and_figures',
'../examples/color',
- '../examples/pylab_examples',
+ '../examples/statistics',
+ '../examples/lines_bars_and_markers',
+ '../examples/images_contours_and_fields',
+ '../examples/shapes_and_collections',
+ '../examples/text_labels_and_annotations',
+ '../examples/pie_and_polar_charts',
+ '../examples/style_sheets',
+ '../examples/axes_grid',
'../examples/showcase',
'../tutorials/introductory',
'../tutorials/intermediate',
diff --git a/tutorials/introductory/usage.py b/tutorials/introductory/usage.py
index 1b097eaae386..7422a79b9baa 100644
--- a/tutorials/introductory/usage.py
+++ b/tutorials/introductory/usage.py
@@ -647,7 +647,7 @@ def my_plotter(ax, data1, data2, param_dict):
# controlled by the ``path.simplify`` and
# ``path.simplify_threshold`` parameters in your
# ``matplotlibrc`` file (see
-# :ref:`sphx_glr_tutorials_01_introductory_customizing.py` for
+# :ref:`sphx_glr_tutorials_introductory_customizing.py` for
# more information about the ``matplotlibrc`` file).
# The ``path.simplify`` parameter is a boolean indicating whether
# or not line segments are simplified at all. The
@@ -684,7 +684,7 @@ def my_plotter(ax, data1, data2, param_dict):
# interactive plotting (with maximal simplification) and another
# style for publication quality plotting (with minimal
# simplification) and activate them as necessary. See
-# :ref:`sphx_glr_tutorials_01_introductory_customizing.py` for
+# :ref:`sphx_glr_tutorials_introductory_customizing.py` for
# instructions on how to perform these actions.
#
# The simplification works by iteratively merging line segments