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

Skip to content

Commit b110b1f

Browse files
committed
DOC Set up sphinx-gallery in parallel of our own gallery
1 parent b918016 commit b110b1f

11 files changed

Lines changed: 20 additions & 4 deletions

File tree

doc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'sphinx.ext.inheritance_diagram',
3333
'sphinx_gallery.gen_gallery',
3434
'sphinxext.gen_rst',
35+
'sphinxext.gen_gallery',
3536
'matplotlib.sphinxext.plot_directive',
3637
'sphinxext.github',
3738
'numpydoc']
@@ -105,6 +106,7 @@
105106
# path where to save gallery generated examples
106107
'gallery_dirs' : 'auto_examples'}
107108

109+
plot_gallery = True
108110
# Add any paths that contain templates here, relative to this directory.
109111
templates_path = ['_templates']
110112

doc/users/image_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Note that you can also change colormaps on existing plot objects using the
226226

227227
There are many other colormap schemes available. See the `list and
228228
images of the colormaps
229-
<../examples/color/colormaps_reference.html>`_.
229+
<../examples/color/plot_colormaps_reference.html>`_.
230230

231231
.. _`Color Bars`:
232232

doc/users/prev_whats_new/whats_new_1.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,6 @@ Other improvements
205205

206206
* Pim Schellart added a new colormap called "cubehelix".
207207
Sameer Grover also added a colormap called "coolwarm". See it and all
208-
other colormaps :ref:`here <color-colormaps_reference>`.
208+
other colormaps :ref:`here <color-plot_colormaps_reference>`.
209209

210210
* Many bug fixes and documentation improvements.

doc/users/prev_whats_new/whats_new_1.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ You can even multiply cyclers, which is like using `itertools.product()`
109109
on two or more property cycles. Remember to use parentheses if writing
110110
a multi-line `prop_cycle` parameter.
111111

112-
.. plot:: mpl_examples/color/color_cycle_demo.py
112+
.. plot:: mpl_examples/color/plot_color_cycle.py
113113

114114

115115
New Colormaps

examples/color/README.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _color_examples:
2+
3+
Color
4+
=====
File renamed without changes.
File renamed without changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. _lines_bars_and_markers_example:
2+
3+
Lines, bars and markers
4+
=======================

examples/lines_bars_and_markers/scatter_with_legend.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'''
2-
Demo of a scatter plot (scatter) with a legend.
2+
===========================
3+
Scatter plots with a legend
4+
===========================
35
46
Also demonstrates how transparency of the markers
57
can be adjusted by giving ``alpha`` a value between

0 commit comments

Comments
 (0)