Re: [Matplotlib-users] os x leopard build step-by-step

2007-11-25 Thread Fernando Perez
Hey John, the info is now a wiki page for the workshop here: http://ipython.scipy.org/moin/Py4Science/InstallationOSX Anyone who has improvements, feel free to make them there. If you don't have a wiki account, you'll see a message telling you that new account creation is disabled, but it's act

Re: [Matplotlib-users] os x leopard build step-by-step

2007-11-25 Thread Jeremy Conlin
Thanks for posting these instructions. Forgive me if this has already been hashed out in previous emails, but do the instructions for iPython resolve the readline issues in Leopard? Thanks, Jeremy On Nov 25, 2007 11:12 PM, John Hunter <[EMAIL PROTECTED]> wrote: > A couple of weeks ago I got a ne

[Matplotlib-users] os x leopard build step-by-step

2007-11-25 Thread John Hunter
A couple of weeks ago I got a new powerbook and installed leopard on it, and decided to keep fairly detailed notes of the process of getting developer svn versions of some of the scientific python tools installed (matplotlib, ipython, numpy, scipy aka MINS). The notes will probably apply equally w

Re: [Matplotlib-users] Histogram on shared axis

2007-11-25 Thread Tom Johnson
>histogram of f(x) is plotted horizontally (on the right) sharing > the y-axis of axis 1 Typo: histogram of f(x) is plotted horizontally (on the LEFT) sharing the y-axis of axis 1 - This SF.net email is sponsored by:

[Matplotlib-users] Histogram on shared axis

2007-11-25 Thread Tom Johnson
Is it possible to have a figure with two-plots such that f(x) is plotted against x onaxis 1 (on the right) histogram of f(x) is plotted horizontally (on the right) sharing the y-axis of axis 1 (sorry, this is proportional font, ascii art) f(x)

[Matplotlib-users] viewing my data correctly

2007-11-25 Thread Bryan Fodness
I am wondering if there is a way to view my data with respect to the physical size of what my array element is suppose to be. I have an array that is 60 x 4000 where, the first row has a height of 1.4 the next nine has a height of 1 the next forty has a height of 0.5 the next nine

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Rich Shepard
On Sun, 25 Nov 2007, Jouni K Seppänen wrote: x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)]) Jouni, Thank you for pointing this out to me. I see that it's a builtin function similar to map that assembles the first element of each tuple into a list for the first variable, an

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Rich Shepard
On Sun, 25 Nov 2007, Jouni K Seppänen wrote: You are looking for the classic "unzip" trick: x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)]) Jouni, That's totally new to me. I'll go find out what it is and how it works its magic. Thank you, Rich -- Richard B. Shepard, Ph.

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Jouni K Seppänen
Rich Shepard <[EMAIL PROTECTED]> writes: > x,y = [(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)] > ValueError: too many values to unpack You are looking for the classic "unzip" trick: x,y = zip(*[(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)]) -- Jouni ---

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Rich Shepard
On Sun, 25 Nov 2007, Darren Dale wrote: > you need a "," after that "(70,1.0)" Thanks, Darren. Not enough caffine, I guess. However, now I get: Traceback (most recent call last): File "trapezoid.py", line 4, in ? x,y = [(15.0, 0.0), (30.0, 1.0), (70.0, 1.0), (85.0, 0.0)] ValueErro

Re: [Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Darren Dale
On Sunday 25 November 2007 12:15:54 pm Rich Shepard wrote: > x,y = [(15,0.0), (30,1.0), (70,1.0) (85,0.0)] you need a "," after that "(70,1.0)" - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R)

[Matplotlib-users] Specifying X,Y Pairs For Line Plots

2007-11-25 Thread Rich Shepard
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