From f7e4d33ce5bdc0b7538d23819d5ab0788b4f556a Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Sun, 13 Apr 2008 10:04:14 +0000 Subject: adding abreviation for pyplot --- numpy/doc/example.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'numpy/doc/example.py') 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. -- cgit v1.2.1