Rich Shepard wrote:
>> x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)])

or better yet -- work with numpy arrays from the beginning:

Either put x an y into separate arrays (which is what MPL expects), or 
if you like X and Y begin together (I do):

points = numpy.array([(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)])

x = points[:,0]
y = points[:,1]

and:

p0 = points[0]
p1 = points[1]

etc. etc.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to