diff options
author | Jarrod Millman <millman@berkeley.edu> | 2008-04-13 10:04:14 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2008-04-13 10:04:14 +0000 |
commit | f7e4d33ce5bdc0b7538d23819d5ab0788b4f556a (patch) | |
tree | d5bb20aedd28d31da3b093c4a1dbe72f6c1651db /numpy/doc/example.py | |
parent | 823aed7b2324feb1d8e4bd52504e8bc86309126a (diff) | |
download | numpy-f7e4d33ce5bdc0b7538d23819d5ab0788b4f556a.tar.gz |
adding abreviation for pyplot
Diffstat (limited to 'numpy/doc/example.py')
-rw-r--r-- | numpy/doc/example.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/numpy/doc/example.py b/numpy/doc/example.py index bfc0cf338..635e75d53 100644 --- a/numpy/doc/example.py +++ b/numpy/doc/example.py @@ -12,11 +12,12 @@ a line by itself, preferably preceeded by a blank line. # auto-generated documentation. __docformat__ = "restructuredtext en" -import os # standard library imports first +import os # standard library imports first -import numpy as np # related third party imports next -import scipy as sp # imports should be at the top of the module -import matplotlib as mpl # imports should usually be on separate lines +import numpy as np # related third party imports next +import scipy as sp # imports should be at the top of the module +import matplotlib as mpl # imports should usually be on separate lines +import matplotlib.pyplot as plt def foo(var1, var2, long_var_name='hi') : """One-line summary or signature. |