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 a17c6a1

Browse filesBrowse files
committed
DOC api's transition to sphinx-gallery is now complete
1 parent a46b3ed commit a17c6a1
Copy full SHA for a17c6a1

Some content is hidden

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

49 files changed

+21
-41
lines changed

‎doc/faq/howto_faq.rst

Copy file name to clipboardExpand all lines: doc/faq/howto_faq.rst
+2-2Lines changed: 2 additions & 2 deletions

‎doc/users/legend_guide.rst

Copy file name to clipboardExpand all lines: doc/users/legend_guide.rst
+1-1Lines changed: 1 addition & 1 deletion

‎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
+4-3Lines changed: 4 additions & 3 deletions

‎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
+1-1Lines changed: 1 addition & 1 deletion

‎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
+1-1Lines changed: 1 addition & 1 deletion

‎doc/users/screenshots.rst

Copy file name to clipboardExpand all lines: doc/users/screenshots.rst
+2-2Lines changed: 2 additions & 2 deletions

‎doc/users/transforms_tutorial.rst

Copy file name to clipboardExpand all lines: doc/users/transforms_tutorial.rst
+1-1Lines changed: 1 addition & 1 deletion

‎examples/api/README.txt

Copy file name to clipboard
+6-27Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,18 @@
1-
matplotlib API
1+
.. _api_examples:
2+
3+
Matplotlib API
24
==============
35

4-
These examples use the matplotlib api rather than the pylab/pyplot
6+
These examples use the Matplotlib api rather than the pylab/pyplot
57
procedural state machine. For robust, production level scripts, or
68
for applications or web application servers, we recommend you use the
7-
matplotlib API directly as it gives you the maximum control over your
9+
Matplotlib API directly as it gives you the maximum control over your
810
figures, axes and plottng commands.
911

1012
The example agg_oo.py is the simplest example of using the Agg backend
1113
which is readily ported to other output formats. This example is a
1214
good starting point if your are a web application developer. Many of
13-
the other examples in this directory use matplotlib.pyplot just to
15+
the other examples in this directory use ``matplotlib.pyplot`` just to
1416
create the figure and show calls, and use the API for everything else.
1517
This is a good solution for production quality scripts. For full
1618
fledged GUI applications, see the user_interfaces examples.
17-
18-
Example style guide
19-
===================
20-
21-
If you are creating new examples, you cannot import pylab or import *
22-
from any module in your examples. The only three functions allowed
23-
from pyplot are "figure", "show" and "close", which you can use as
24-
convenience functions for managing figures. All other matplotlib
25-
functionality must illustrate the API.
26-
27-
A simple example of the recommended style is::
28-
29-
import numpy as np
30-
import matplotlib.pyplot as plt
31-
32-
fig, ax = plt.subplots()
33-
ax.plot(np.random.rand(10))
34-
ax.set_xlabel('some x data')
35-
ax.set_ylabel('some y data')
36-
ax.set_title('some title')
37-
ax.grid(True)
38-
fig.savefig('myfig')
39-
plt.show()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def legend(self, *args, **kwargs):
508508
Examples
509509
--------
510510
511-
.. plot:: mpl_examples/api/legend_demo.py
511+
.. plot:: mpl_examples/api/plot_legend.py
512512
513513
"""
514514
handlers = kwargs.get('handler_map', {}) or {}

‎lib/matplotlib/path.py

Copy file name to clipboardExpand all lines: lib/matplotlib/path.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def make_compound_path_from_polys(cls, XY):
318318
numsides x 2) numpy array of vertices. Return object is a
319319
:class:`Path`
320320
321-
.. plot:: mpl_examples/api/histogram_path_demo.py
321+
.. plot:: mpl_examples/api/plot_histogram_path.py
322322
323323
"""
324324

‎lib/matplotlib/sankey.py

Copy file name to clipboardExpand all lines: lib/matplotlib/sankey.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def __init__(self, ax=None, scale=1.0, unit='', format='%G', gap=0.25,
118118
119119
**Examples:**
120120
121-
.. plot:: mpl_examples/api/sankey_demo_basics.py
121+
.. plot:: mpl_examples/api/plot_sankey_basics.py
122122
"""
123123
# Check the arguments.
124124
if gap < 0:

0 commit comments

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