[Numpy-discussion] Fwd: [matplotlib-devel] standard abbreviation for pyplot or pylab?

Jarrod Millman millman@berkeley....
Sun Apr 13 05:00:19 CDT 2008


I just realized that this discussion was only on the matplotlib
mailing list.  Basically, they were clarifying that the import
statement for pylab should be:
import matplotlib.pyplot as plt

Sorry for the confusion,

---------- Forwarded message ----------
From: Jarrod Millman <millman@berkeley.edu>
Date: Sun, Apr 13, 2008 at 2:58 AM
Subject: Re: [matplotlib-devel] standard abbreviation for pyplot or pylab?
To: John Hunter <jdh2358@gmail.com>
Cc: Eric Firing <efiring@hawaii.edu>, matplotlib development list
<matplotlib-devel@lists.sourceforge.net>


On Sat, Apr 12, 2008 at 3:24 PM, John Hunter <jdh2358@gmail.com> wrote:
 > On Sat, Apr 12, 2008 at 2:19 PM, Eric Firing <efiring@hawaii.edu> wrote:

>  >  and then this was added, as something else that had been agreed at the
 >  >  same sprint:
 >  >  import pylab as plt
 >  >  I think this is a mistake, and it should have been
 >  >
 >  >  import matplotlib.pyplot as plt
 >
 >  This is what we agreed to (import matplotlib.pyplot as plt) during the
 >  numpy sprint (I was on google chat remotely but participated in the
 >  discussion).  I agree that pylab as plt would just add to the
 >  confusion.  We agreed on promoting (and I currently use)
 >
 >
 >  import numpy as np
 >  import scipy as sp
 >
 > import matplotlib.pyplot as plt

 Sorry, that was my mistake.  Thanks for clearing it up.

-- 
Jarrod Millman
Computational Infrastructure for Research Labs
10 Giannini Hall, UC Berkeley
phone: 510.643.4014
http://cirl.berkeley.edu/


More information about the Numpy-discussion mailing list