[Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
Hi, I'm trying to plot a set of points, each point having a different color. For the moment, I'm trying to do something like that : for indice in range(0, points.shape[0]): pl.plot(points[indice, 0], points[indice, 1], 'o', c = colours[indice,:], hold = True) where points is a numpy array

Re: [Matplotlib-users] [mailinglist] Re: Nonlinear colormap ?

2007-03-09 Thread Uwe Schmitt
Ken McIvor wrote: Uwe, I don't know the answer to your question, but yesterday Rob Hetland sent out and email entitled Creating a non-linear colormap. that includes example code. That might help you get started. Ken Thanks, but I can not access this article from the mailing lists

Re: [Matplotlib-users] [mailinglist] Re: Nonlinear colormap ?

2007-03-09 Thread Ken McIvor
On Mar 9, 2007, at 5:11 AM, Uwe Schmitt wrote: Thanks, but I can not access this article from the mailing lists archive. On sourceforge the newest posting is from 23th feb. I'm not sure what the problem with SourceForge is. I'll forward you that email off-list. Ken

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread John Hunter
On 3/9/07, Matthieu Brucher [EMAIL PROTECTED] wrote: Hi, I'm trying to plot a set of points, each point having a different color. For the moment, I'm trying to do something like that : for indice in range(0, points.shape[0]): pl.plot(points[indice, 0], points[indice, 1], 'o', c =

Re: [Matplotlib-users] imshow without scaling of image

2007-03-09 Thread John Hunter
On 3/9/07, Uwe Schmitt [EMAIL PROTECTED] wrote: I would like to display an image using pylab without automatic scaling to the default size of the plot window. How can I achieve this ? If you want displayed image to just be a pixel dump of the actual image use figimage

Re: [Matplotlib-users] Hold-related strangeness, looks like a bug.

2007-03-09 Thread John Hunter
On 3/9/07, Fernando Perez [EMAIL PROTECTED] wrote: (or matlab for that matter) in my life, I was rather surprised by the behavior and (mis)understood it as a bug. I've always gotten by just fine in pylab without even knowing what hold did, and simply clearing the figure by hand when needed

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
Complete examples always help ince we have no way of knowing what the points data structures look like, but I'll hazard a gues. The x and y arguments to plot need to be sequences. Ie, something like plot([0.5], [0.5], 'ro') It can be inefficient to plot many separate points this way -- if

Re: [Matplotlib-users] Displaying several points with different colors

2007-03-09 Thread Matthieu Brucher
Thank you, I think thatthis will solve my problem :) I didn't know this class existed. Matthieu 2007/3/9, John Hunter [EMAIL PROTECTED]: On 3/9/07, Matthieu Brucher [EMAIL PROTECTED] wrote: What I have is a set of points in a numpy.array - for instance size (2000, 2) -. What I have as well

[Matplotlib-users] job opportunity at Space Telescope Science Institute

2007-03-09 Thread Perry Greenfield
We are looking for someone to fill a position at the Space Telescope Science Institute (in Baltimore, MD) to work on Python tools for astronomical data processing and analysis. Details can be found at: http://www.stsci.edu/institute/brc/hr/co/external/Req559.html

Re: [Matplotlib-users] Bug in aspect ratio for matshow() when using colorbar()

2007-03-09 Thread Suresh Pillai
I guess I didn't read the following carefully: ... The aspect ratio of the figure window is that of the array ... Because of how matshow() tries to set the figure aspect ratio to be the one of the array, ... which would explain the behaviour below. Why the restrictions? Seems one would

Re: [Matplotlib-users] Square/Circle markers with transparent faces?

2007-03-09 Thread Andrew Straw
set markerfacecolor (a.k.a. mfc) = 'None' (make sure you include the quotes). -Andrew John T Whelan wrote: Dear matplotlib gurus, When I use plot(t,x,'rx',t,y,'bs'); in matlab, it produces blue boxes for y, i.e., squares with a blue border and a transparent interior, so that if one of

Re: [Matplotlib-users] Bug in aspect ratio for matshow() when using colorbar()

2007-03-09 Thread Eric Firing
Suresh Pillai wrote: I guess I didn't read the following carefully: ... The aspect ratio of the figure window is that of the array ... Because of how matshow() tries to set the figure aspect ratio to be the one of the array, ... which would explain the behaviour below. Why the