I need to plot trapezoids as well as left- and right-shouldered straight line plots. If I specify separate lists for the x values and their corresponding y values, the plots are generated and displayed as needed. However, I cannot specify the points as a list of tuples and have matplotlib accept them.
Example: x,y = [(15,0.0), (30,1.0), (70,1.0) (85,0.0)] p.plot (x,y) Yields: Traceback (most recent call last): File "trapezoid.py", line 4, in ? x,y = [(15,0.0), (30,1.0), (70,1.0) (85,0.0)] TypeError: 'tuple' object is not callable I don't see how to do this in the User Guide, but I'm sure there must be a way. Please pass me a pointer on how to accomplish this. Rich -- Richard B. Shepard, Ph.D. | Integrity Credibility Applied Ecosystem Services, Inc. | Innovation <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863 ------------------------------------------------------------------------- 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