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

Skip to content

Commit 496d7a7

Browse files
committed
Merge pull request matplotlib#3228 from tacaswell/top_level_docstring
DOC : top_level doc-string clean up
2 parents 44b3634 + d486179 commit 496d7a7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/matplotlib/__init__.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@
44
A procedural interface is provided by the companion pyplot module,
55
which may be imported directly, e.g.::
66
7-
from matplotlib.pyplot import *
8-
9-
To include numpy functions too, use::
10-
11-
from pylab import *
7+
import matplotlib.pyplot as plt
128
139
or using ipython::
1410
1511
ipython
1612
1713
at your terminal, followed by::
1814
19-
In [1]: %pylab
15+
In [1]: %matplotlib
16+
In [2]: import matplotlib.pyplot as plt
2017
2118
at the ipython shell prompt.
2219
@@ -25,8 +22,7 @@
2522
interactively. The
2623
exceptions are the pyplot commands :func:`~matplotlib.pyplot.figure`,
2724
:func:`~matplotlib.pyplot.subplot`,
28-
:func:`~matplotlib.pyplot.subplots`,
29-
:func:`~matplotlib.backends.backend_qt4agg.show`, and
25+
:func:`~matplotlib.pyplot.subplots`, and
3026
:func:`~pyplot.savefig`, which can greatly simplify scripting.
3127
3228
Modules include:

0 commit comments

Comments
 (0)