Re: [Matplotlib-users] quick numpy question

2009-03-17 Thread Jouni K . Seppänen
Pablo Romero writes: > quick numpy-related question. Not the best mailing list then, but... > I want to use numpy.arange() to create multiple arrays, and then I > want to join these arrays (or individual elements) to the final array > without repeating existing elements (create a 'union' from 2

Re: [Matplotlib-users] quick numpy question

2009-03-17 Thread brett . mcsweeney
Use Python set and then convert to numpy array? Pablo Romero 18/03/2009 01:50 PM To cc Subject [Matplotlib-users] quick numpy question quick numpy-related question. I want to use numpy.arange() to create multiple arrays, and then I want to join these arrays (or individual elemen

[Matplotlib-users] quick numpy question

2009-03-17 Thread Pablo Romero
quick numpy-related question. I want to use numpy.arange() to create multiple arrays, and then I want to join these arrays (or individual elements) to the final array without repeating existing elements (create a 'union' from 2 or more arrays or individual elements). example: lev=np.arange(

Re: [Matplotlib-users] problems with contourf & alpha

2009-03-17 Thread Eric Firing
Jae-Joon Lee wrote: > Reading Eric's reply on the previous email, my impression is that > contourf is not supposed to draw the boundary (no stroke!). But it > seems it still does. > > for c in cs.collections: > c.set_edgecolor("none") > > After this, I can get rid of the vertical lines. > I c

Re: [Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread GKalman
John Hunter-4 wrote: > > On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote: > >> >> I need a reference to a "How to..." (or a sample code) to changing the >> color >> (Default or otherwise) of the Canvas, when plotting with matplotlib, >> using >> Python 2.5 on Windows. > > Thanks John, > > I

Re: [Matplotlib-users] automatically plotting points in different colors

2009-03-17 Thread John Hunter
On Sat, Mar 14, 2009 at 12:22 PM, per freem wrote: > hi all, > > i have a set of about 100-500 points that i'd like to color in different > colors. i tried the following, using the c= argument to the scatter command: > > x = rand(200) > scatter(x, x, c=xrange(1,201)) > > however, only a handful o

Re: [Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread John Hunter
On Mon, Mar 16, 2009 at 1:52 PM, GKalman wrote: > > I need a reference to a "How to..." (or a sample code) to changing the > color > (Default or otherwise) of the Canvas, when plotting with matplotlib, using > Python 2.5 on Windows. When creating your figure, just pass the facecolor you want

Re: [Matplotlib-users] plotfile: tuple index out of range

2009-03-17 Thread John Hunter
On Tue, Mar 17, 2009 at 2:18 AM, David Simpson wrote: > > Now (from ipython): > In [41]: plotfile("tester.txt",cols=(0,1)) > --- > IndexErrorTraceback (most recent call last) > > > > ) >

[Matplotlib-users] pylab-matplotlib-canvas-background-color change...

2009-03-17 Thread GKalman
I need a reference to a "How to..." (or a sample code) to changing the color (Default or otherwise) of the Canvas, when plotting with matplotlib, using Python 2.5 on Windows. -- View this message in context: http://www.nabble.com/pylab-matplotlib-canvas-background-color-change...-tp22541479p22

Re: [Matplotlib-users] Rotating in imshow

2009-03-17 Thread Michael Droettboom
Just getting back to work after an illness... Eric's assessment is 100% correct: the transform kwarg is ignored by images. It probably could be, but it would not be trivial, particularly in the way the Agg backend is currently architected. This should probably be added as a feature request to

Re: [Matplotlib-users] problem with contour() & basemap; contours overlapping map

2009-03-17 Thread Pablo Romero
Thanks, Its good to know that it IS possible to set the Z-order for contours (I didnt think it was possible). In any case, I solved this by setting the Z-order in my fillcontinents() and drawcoastlines() calls, and setting them to '100' and '101' respectively (assuming these numbers were high

Re: [Matplotlib-users] problems with contourf & alpha

2009-03-17 Thread Jae-Joon Lee
Reading Eric's reply on the previous email, my impression is that contourf is not supposed to draw the boundary (no stroke!). But it seems it still does. for c in cs.collections: c.set_edgecolor("none") After this, I can get rid of the vertical lines. I can see slight gaps between filled regi

[Matplotlib-users] plotfile: tuple index out of range

2009-03-17 Thread David Simpson
Hi, I can't get the plotfile command to work on a simple file. I have a file"tester.txt" which looks like: 1 0.2137 0.2139 0.2138 2 0.3969 0.3970 0.4003 3 0.4391 0.4396 0.4382 4 1.0020

Re: [Matplotlib-users] problem with contour() & basemap; contours overlapping map

2009-03-17 Thread Eric Firing
Jouni K. Seppänen wrote: > Pablo Romero writes: > >> How can I go about correcting this, so that the 'basemap.contour()' >> function draws the contours BEFORE drawing the coastlines & filled >> continents? > > Use appropriate zorder arguments in your method calls: > > http://matplotlib.sourcefo

Re: [Matplotlib-users] problems with contourf & alpha

2009-03-17 Thread Eric Firing
Pablo Romero wrote: > > Im having an issue where contourf is producing visible defects in the shaded > contours (within png output) with alpha values that are less then 1.0. > Pablo, See http://www.mail-archive.com/matplotlib-users@lists.sourceforge.net/msg10245.html and my reply to that. I