Re: [Matplotlib-users] Warning: converting a masked element to nan

2011-11-06 Thread questions anon
no that didn't work and I am back to thinking it is not the dates fault, this is because if I only choose a section of my array that I know doesn't have any NANs it works fine. Is there a way to tell is to skip/ignore these? On Sat, Nov 5, 2011 at 8:50 AM, Stan West wrote: > ** > > *From:* quest

[Matplotlib-users] How to shift colormap?

2011-11-06 Thread klo uo
Like in Basemap examples: http://matplotlib.github.com/basemap/users/examples.html (topographic image in the middle of page) ground 0 has some yellow/orange color making seas and oceans coasts in that same, color instead light blue (as we'd all expect I guess) So how to shift this particular color

Re: [Matplotlib-users] plots points corresponding to a list of values - similar to listplot of mathematica

2011-11-06 Thread Gousios George
Thanks! Now,it's better it gives me my 10 points but it supposed to give me the 2 axes with values from 0-1000,but they are not. data=[] for i in range(0,1000,100): mydata=(sc.array([i,rw1.MeanSquareDistance1d(i,np)])).tolist() data.append(mydata) print(data) fig3=plt.figure() x,y=sc.tr

Re: [Matplotlib-users] plots points corresponding to a list of values - similar to listplot of mathematica

2011-11-06 Thread Ben Breslauer
You can also do x,y = zip(*pts) If you don't feel like importing numpy. Ben On Sun, Nov 6, 2011 at 12:49 PM, Tony Yu wrote: > > > On Sun, Nov 6, 2011 at 8:20 AM, Gousios George wrote: > >> Hello, >> Is there a way?Like the title says? >> I have a 2d list : >> > [[ 0 1] >> > [ 1 1] >> > [

Re: [Matplotlib-users] plots points corresponding to a list of values - similar to listplot of mathematica

2011-11-06 Thread Tony Yu
On Sun, Nov 6, 2011 at 8:20 AM, Gousios George wrote: > Hello, > Is there a way?Like the title says? > I have a 2d list : > > [[ 0 1] > > [ 1 1] > > [ 1 0] > > [ 2 0] > > [ 1 0] > > [ 2 0] > > [ 1 0] > > [ 0 0] > > [ 1 0] > > [ 1 -1]] > > and i want to do the "listplot' from ma

[Matplotlib-users] plots points corresponding to a list of values - similar to listplot of mathematica

2011-11-06 Thread Gousios George
Hello, Is there a way?Like the title says? I have a 2d list : > [[ 0 1] > [ 1 1] > [ 1 0] > [ 2 0] > [ 1 0] > [ 2 0] > [ 1 0] > [ 0 0] > [ 1 0] > [ 1 -1]] and i want to do the "listplot' from mathematica. Thanks! --