[Numpy-svn] r5183 - trunk/numpy/doc

numpy-svn at scipy.org numpy-svn at scipy.org
Fri May 16 14:14:02 EDT 2008


Author: stefan
Date: 2008-05-16 13:13:44 -0500 (Fri, 16 May 2008)
New Revision: 5183

Modified:
   trunk/numpy/doc/example.py
Log:
Minor update to example docstring.


Modified: trunk/numpy/doc/example.py
===================================================================
--- trunk/numpy/doc/example.py	2008-05-16 18:10:28 UTC (rev 5182)
+++ trunk/numpy/doc/example.py	2008-05-16 18:13:44 UTC (rev 5183)
@@ -22,29 +22,24 @@
 #
 # If you prefer the use of abbreviated module names, we suggest the
 # convention used by NumPy itself::
-#
-#   import numpy as np
-#   import scipy as sp
-#   import matplotlib as mpl
-#   import matplotlib.pyplot as plt
-#
+
+import numpy as np
+import scipy as sp
+import matplotlib as mpl
+import matplotlib.pyplot as plt
+
 # These abbreviated names are not to be used in docstrings; users must
 # be able to paste and execute docstrings after importing only the
 # numpy module itself, unabbreviated.
 
-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
-
 from my_module import my_func, other_func
 
 def foo(var1, var2, long_var_name='hi') :
     """A one-line summary that does not use variable names or the
     function name.
 
-    Several sentences providing an extended description. You can put
-    text in mono-spaced type like so: ``var``.
+    Several sentences providing an extended description. Refer to
+    variables using back-ticks, e.g. `var`.
 
     Parameters
     ----------




More information about the Numpy-svn mailing list