Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 356815a

Browse filesBrowse files
authored
Merge pull request #1 from anntzer/cleanup-plot_-prefix
Cleanup plot_ prefix
2 parents b571c51 + e01eb8d commit 356815a
Copy full SHA for 356815a

File tree

169 files changed

+97
-96
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

169 files changed

+97
-96
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ lib/matplotlib/mpl-data/matplotlibrc
5858

5959
# Documentation generated files #
6060
#################################
61+
doc/api/_as_gen
6162
doc/examples
63+
# autogenerated by sphinx-gallery
64+
doc/modules
65+
doc/pyplots/tex_demo.png
6266
doc/users/installing.rst
6367
doc/_static/matplotlibrc
64-
doc/pyplots/tex_demo.png
65-
doc/api/_as_gen
6668
lib/dateutil
6769
examples/*/*.pdf
6870
examples/*/*.png

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@
106106

107107
# Sphinx gallery configuration
108108
sphinx_gallery_conf = {
109-
# path to your examples scripts
110-
'examples_dirs' : '../examples',
111-
# path where to save gallery generated examples
112-
'gallery_dirs' : 'gallery'}
109+
'examples_dirs': '../examples',
110+
'filename_pattern': '\.py$',
111+
'gallery_dirs': 'gallery'}
113112

114113
plot_gallery = True
115114

‎doc/faq/howto_faq.rst

Copy file name to clipboardExpand all lines: doc/faq/howto_faq.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ some ratio which controls the ratio::
353353

354354
.. htmlonly::
355355

356-
See :ref:`subplots_axes_and_figures-plot_equal_aspect_ratio` for a complete
356+
See :ref:`subplots_axes_and_figures-equal_aspect_ratio` for a complete
357357
example.
358358

359359

@@ -398,7 +398,7 @@ locators as desired because the two axes are independent.
398398

399399
.. htmlonly::
400400

401-
See :ref:`api-plot_two_scales` for a complete example
401+
See :ref:`api-two_scales` for a complete example
402402

403403
.. _howto-batch:
404404

@@ -644,7 +644,7 @@ For more on configuring your backend, see
644644

645645
Alternatively, you can avoid pylab/pyplot altogether, which will give
646646
you a little more control, by calling the API directly as shown in
647-
:ref:`api-plot_agg_oo`.
647+
:ref:`api-agg_oo`.
648648

649649
You can either generate hardcopy on the filesystem by calling savefig::
650650

‎doc/make.py

Copy file name to clipboardExpand all lines: doc/make.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ def linkcheck():
5757
FRONTPAGE_PY_PATH = "../examples/frontpage/" # python scripts location
5858
FRONTPAGE_PNG_PATH = "_static/" # png files location
5959
# png files and corresponding generation scripts:
60-
FRONTPAGE_PNGS = {"surface3d_frontpage.png": "plot_3D.py",
61-
"contour_frontpage.png": "plot_contour.py",
62-
"histogram_frontpage.png": "plot_histogram.py",
63-
"membrane_frontpage.png": "plot_membrane.py"}
60+
FRONTPAGE_PNGS = {"surface3d_frontpage.png": "3D.py",
61+
"contour_frontpage.png": "contour.py",
62+
"histogram_frontpage.png": "histogram.py",
63+
"membrane_frontpage.png": "membrane.py"}
6464

6565

6666
def generate_frontpage_pngs(only_if_needed=True):

‎doc/mpl_toolkits/index.rst

Copy file name to clipboardExpand all lines: doc/mpl_toolkits/index.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ plotting (scatter, surf, line, mesh) tools. Not the fastest or feature
3030
complete 3D library out there, but ships with Matplotlib and thus may be a
3131
lighter weight solution for some use cases.
3232

33-
.. plot:: gallery/mplot3d/plot_contourf3d_2.py
33+
.. plot:: gallery/mplot3d/contourf3d_2.py
3434

3535
.. _toolkit_axes_grid1:
3636

‎doc/mpl_toolkits/mplot3d/tutorial.rst

Copy file name to clipboardExpand all lines: doc/mpl_toolkits/mplot3d/tutorial.rst
+19-19Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,41 +36,41 @@ Line plots
3636
====================
3737
.. automethod:: Axes3D.plot
3838

39-
.. plot:: gallery/mplot3d/plot_lines3d.py
39+
.. plot:: gallery/mplot3d/lines3d.py
4040

4141
.. _scatter3d:
4242

4343
Scatter plots
4444
=============
4545
.. automethod:: Axes3D.scatter
4646

47-
.. plot:: gallery/mplot3d/plot_scatter3d.py
47+
.. plot:: gallery/mplot3d/scatter3d.py
4848

4949
.. _wireframe:
5050

5151
Wireframe plots
5252
===============
5353
.. automethod:: Axes3D.plot_wireframe
5454

55-
.. plot:: gallery/mplot3d/plot_wire3d.py
55+
.. plot:: gallery/mplot3d/wire3d.py
5656

5757
.. _surface:
5858

5959
Surface plots
6060
=============
6161
.. automethod:: Axes3D.plot_surface
6262

63-
.. plot:: gallery/mplot3d/plot_surface3d.py
64-
.. plot:: gallery/mplot3d/plot_surface3d_2.py
65-
.. plot:: gallery/mplot3d/plot_surface3d_3.py
63+
.. plot:: gallery/mplot3d/surface3d.py
64+
.. plot:: gallery/mplot3d/surface3d_2.py
65+
.. plot:: gallery/mplot3d/surface3d_3.py
6666

6767
.. _trisurface:
6868

6969
Tri-Surface plots
7070
=================
7171
.. automethod:: Axes3D.plot_trisurf
7272

73-
.. plot:: gallery/mplot3d/plot_trisurf3d.py
73+
.. plot:: gallery/mplot3d/trisurf3d.py
7474

7575

7676
.. _contour3d:
@@ -79,18 +79,18 @@ Contour plots
7979
=============
8080
.. automethod:: Axes3D.contour
8181

82-
.. plot:: gallery/mplot3d/plot_contour3d.py
83-
.. plot:: gallery/mplot3d/plot_contour3d_2.py
84-
.. plot:: gallery/mplot3d/plot_contour3d_3.py
82+
.. plot:: gallery/mplot3d/contour3d.py
83+
.. plot:: gallery/mplot3d/contour3d_2.py
84+
.. plot:: gallery/mplot3d/contour3d_3.py
8585

8686
.. _contourf3d:
8787

8888
Filled contour plots
8989
====================
9090
.. automethod:: Axes3D.contourf
9191

92-
.. plot:: gallery/mplot3d/plot_contourf3d.py
93-
.. plot:: gallery/mplot3d/plot_contourf3d_2.py
92+
.. plot:: gallery/mplot3d/contourf3d.py
93+
.. plot:: gallery/mplot3d/contourf3d_2.py
9494

9595
.. versionadded:: 1.1.0
9696
The feature demoed in the second contourf3d example was enabled as a
@@ -102,37 +102,37 @@ Polygon plots
102102
====================
103103
.. automethod:: Axes3D.add_collection3d
104104

105-
.. plot:: gallery/mplot3d/plot_polys3d.py
105+
.. plot:: gallery/mplot3d/polys3d.py
106106

107107
.. _bar3d:
108108

109109
Bar plots
110110
====================
111111
.. automethod:: Axes3D.bar
112112

113-
.. plot:: gallery/mplot3d/plot_bars3d.py
113+
.. plot:: gallery/mplot3d/bars3d.py
114114

115115
.. _quiver3d:
116116

117117
Quiver
118118
====================
119119
.. automethod:: Axes3D.quiver
120120

121-
.. plot:: gallery/mplot3d/plot_quiver3d.py
121+
.. plot:: gallery/mplot3d/quiver3d.py
122122

123123
.. _2dcollections3d:
124124

125125
2D plots in 3D
126126
====================
127-
.. plot:: gallery/mplot3d/plot_2dcollections3d.py
127+
.. plot:: gallery/mplot3d/2dcollections3d.py
128128

129129
.. _text3d:
130130

131131
Text
132132
====================
133133
.. automethod:: Axes3D.text
134134

135-
.. plot:: gallery/mplot3d/plot_text3d.py
135+
.. plot:: gallery/mplot3d/text3d.py
136136

137137
.. _3dsubplots:
138138

@@ -146,5 +146,5 @@ in the same figure.
146146
Subplotting 3D plots was added in v1.0.0. Earlier version can not
147147
do this.
148148

149-
.. plot:: gallery/mplot3d/plot_subplot3d.py
150-
.. plot:: gallery/mplot3d/plot_mixed_subplots.py
149+
.. plot:: gallery/mplot3d/subplot3d.py
150+
.. plot:: gallery/mplot3d/mixed_subplots.py

‎doc/users/legend_guide.rst

Copy file name to clipboardExpand all lines: doc/users/legend_guide.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ Known examples of using legend
289289
Here is a non-exhaustive list of the examples available involving legend
290290
being used in various ways:
291291

292-
* :ref:`api-plot_legend`
293-
* :ref:`lines_bars_and_markers-plot_scatter_with_legend`
292+
* :ref:`api-legend`
293+
* :ref:`lines_bars_and_markers-scatter_with_legend`
294294
* :ref:`pylab_examples-contourf_hatching`
295295
* :ref:`pylab_examples-figlegend_demo`
296296
* :ref:`pylab_examples-scatter_symbol`

‎doc/users/prev_whats_new/whats_new_1.1.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.1.rst
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Sankey Diagrams
1717

1818
Kevin Davies has extended Yannick Copin's original Sankey example into a module
1919
(:mod:`~matplotlib.sankey`) and provided new examples
20-
(:ref:`api-plot_sankey_basics`, :ref:`api-plot_sankey_links`,
21-
:ref:`api-plot_sankey_rankine`).
20+
(:ref:`api-sankey_basics`, :ref:`api-sankey_links`,
21+
:ref:`api-sankey_rankine`).
2222

23-
.. plot:: gallery/api/plot_sankey_rankine.py
23+
.. plot:: gallery/api/sankey_rankine.py
2424

2525

2626
Animation
@@ -135,12 +135,12 @@ as 2D plotting, Ben Root has made several improvements to the
135135

136136
* Ticker offset display added:
137137

138-
.. plot:: gallery/mplot3d/plot_offset.py
138+
.. plot:: gallery/mplot3d/offset.py
139139

140140
* :meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.contourf`
141141
gains *zdir* and *offset* kwargs. You can now do this:
142142

143-
.. plot:: gallery/mplot3d/plot_contourf3d_2.py
143+
.. plot:: gallery/mplot3d/contourf3d_2.py
144144

145145
Numerix support removed
146146
-----------------------
@@ -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-plot_colormaps_reference>`.
208+
other colormaps :ref:`here <color-colormaps_reference>`.
209209

210210
* Many bug fixes and documentation improvements.

‎doc/users/prev_whats_new/whats_new_1.2.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.2.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Damon McDougall added a new plotting method for the
6262
:mod:`~mpl_toolkits.mplot3d` toolkit called
6363
:meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf`.
6464

65-
.. plot:: gallery/mplot3d/plot_trisurf3d.py
65+
.. plot:: gallery/mplot3d/trisurf3d.py
6666

6767
Control the lengths of colorbar extensions
6868
------------------------------------------
@@ -153,7 +153,7 @@ In addition to simply plotting the streamlines of the vector field,
153153
line widths of the streamlines to a separate parameter, such as the speed or
154154
local intensity of the vector field.
155155

156-
.. plot:: gallery/images_contours_and_fields/plot_streamplot_features.py
156+
.. plot:: gallery/images_contours_and_fields/streamplot_features.py
157157

158158

159159
New hist functionality

‎doc/users/prev_whats_new/whats_new_1.3.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.3.rst
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ before creating your plot. For really fine control, it is also possible
9191
to modify each artist's sketch parameters individually with
9292
:meth:`matplotlib.artist.Artist.set_sketch_params`.
9393

94-
.. plot:: gallery/showcase/plot_xkcd.py
94+
.. plot:: gallery/showcase/xkcd.py
9595

9696
Updated Axes3D.contour methods
9797
------------------------------
@@ -100,7 +100,7 @@ Damon McDougall updated the
100100
:meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.tricontourf` methods to allow 3D
101101
contour plots on abitrary unstructured user-specified triangulations.
102102

103-
.. plot:: gallery/mplot3d/plot_tricontour3d.py
103+
.. plot:: gallery/mplot3d/tricontour3d.py
104104

105105
New eventplot plot type
106106
```````````````````````

‎doc/users/prev_whats_new/whats_new_1.4.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.4.rst
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ with :func:`~matplotlib.Axes.bxp`.
8282
Lastly, each artist (e.g., the box, outliers, cap, notches) can now be
8383
toggled on or off and their styles can be passed in through individual
8484
kwargs. See the examples:
85-
:ref:`statistics-plot_boxplot` and
86-
:ref:`statistics-plot_bxp`
85+
:ref:`statistics-boxplot` and
86+
:ref:`statistics-bxp`
8787

8888
Added a bool kwarg, :code:`manage_xticks`, which if False disables the management
8989
of the ticks and limits on the x-axis by :func:`~matplotlib.axes.Axes.bxp`.
@@ -160,7 +160,7 @@ matplotlib internals were cleaned up to support using such transforms in
160160
:class:`~matplotlib.Axes`. This transform is important for some plot types,
161161
specifically the Skew-T used in meteorology.
162162

163-
.. plot:: gallery/api/plot_skewt.py
163+
.. plot:: gallery/api/skewt.py
164164

165165
Support for specifying properties of wedge and text in pie charts.
166166
``````````````````````````````````````````````````````````````````
@@ -243,7 +243,7 @@ term project. This feature is documented in :func:`~mpl_toolkits.mplot3d.Axes3D.
243243
The team members are: Ryan Steve D'Souza, Victor B, xbtsw, Yang Wang, David,
244244
Caradec Bisesar and Vlad Vassilovski.
245245

246-
.. plot:: gallery/mplot3d/plot_quiver3d.py
246+
.. plot:: gallery/mplot3d/quiver3d.py
247247

248248
polar-plot r-tick locations
249249
```````````````````````````

‎doc/users/prev_whats_new/whats_new_1.5.rst

Copy file name to clipboardExpand all lines: doc/users/prev_whats_new/whats_new_1.5.rst
+2-2Lines changed: 2 additions & 2 deletions
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:: gallery/color/plot_color_cycle.py
112+
.. plot:: gallery/color/color_cycle.py
113113

114114

115115
New Colormaps
@@ -367,7 +367,7 @@ kwargs names is not ideal, but `Axes.fill_between` already has a
367367

368368
This is particularly useful for plotting pre-binned histograms.
369369

370-
.. plot:: gallery/api/plot_filled_step.py
370+
.. plot:: gallery/api/filled_step.py
371371

372372

373373
Square Plot

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.