Re: [Matplotlib-users] Qt4 backend and subplot configuration tool

2007-05-06 Thread Darren Dale
On Sunday 06 May 2007 8:08:34 pm yardbird wrote: > Hello, > > I'm using matplotlib 0.90 + qt4. Everything seems ok, apart from the fact > that I cannot see anything when accessing the subplot configuration tool > from the plot window. The subplot bars _are_ there, since clicking & > dragging blindl

[Matplotlib-users] Qt4 backend and subplot configuration tool

2007-05-06 Thread yardbird
Hello, I'm using matplotlib 0.90 + qt4. Everything seems ok, apart from the fact that I cannot see anything when accessing the subplot configuration tool from the plot window. The subplot bars _are_ there, since clicking & dragging blindly seems to have effects on the figure, but the sliders us

Re: [Matplotlib-users] setting scatter colors

2007-05-06 Thread John Washakie
Eric, Exactly. Thanks for your post. I finally figured it out, and wanted to post here for completeness in case no one followed up, but I'm glad that you did. So yes, the following: scatter(x, y, c=arange(len(x)), cmap=cm.spectral) is exactly what I wanted... except that for my data I had: Yvar

Re: [Matplotlib-users] setting scatter colors

2007-05-06 Thread Eric Firing
John Washakie wrote: > Trying again, a little more detail: > > I am trying to use the color setting feature of SCATTER: > > colors=cm.spectral(linespace(0,100,len(x)) > > then, plotting: > > scatter(x,y,c=colors) > > I get the error: > TypeError: c must be a matplotlib color arg or a sequence

[Matplotlib-users] setting scatter colors

2007-05-06 Thread John Washakie
Trying again, a little more detail: I am trying to use the color setting feature of SCATTER: colors=cm.spectral(linespace(0,100,len(x)) then, plotting: scatter(x,y,c=colors) I get the error: TypeError: c must be a matplotlib color arg or a sequence of them But I don't understand. >x.shape >(

[Matplotlib-users] changing colors of scatter elements

2007-05-06 Thread John Washakie
Hello all, I'm trying to create a plot in each element in my x,y array have a slightly different color - using spectral for example. My data is a time series, but I am not plotting the time series. I want the older data to show up in a different color from the latest data. What I have so far is:

Re: [Matplotlib-users] From list of objects to plotting

2007-05-06 Thread Jouni K . Seppänen
Tommy Grav <[EMAIL PROTECTED]> writes: > I would now like to plot a vs e for all the obj objects in nlist. > how do I do that? I tried > > plot(nlist[:].a,nlist[:].e,'ko') You have a list of objects that have attributes named a and e; these are not attributes of the list. Try plot([x.a for x i

Re: [Matplotlib-users] From list of objects to plotting

2007-05-06 Thread Matthias Michler
Hello Tommy, I would like to do such convertings, too, but I think there is no such fast way in python. I'm using the 'for statement' to iterate over a list of objects and save their properties into a new list. best regards, Matthias On Friday 04 May 2007 17:54, Tommy Grav wrote: > I have som