Re: [Matplotlib-users] Question on LineCollection

2011-07-14 Thread Justin McCann
On Wed, Jul 13, 2011 at 6:49 PM, Benjamin Root wrote: > On Wednesday, July 13, 2011, Justin McCann wrote: >> $ ipython -pylab >> # >> from matplotlib.collections import LineCollection >> f = figure() >> plot() >> ax = gca() >> vec = numpy.random.random((10,3)) >> segs = [] >> for i in range(

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Benjamin Root
On Wednesday, July 13, 2011, Justin McCann wrote: > 2011/7/13 SULSEUNG-JIN : >> Thanks, Justin >> >> I think I made a confusing example code. Here comes new one: > > Maybe you just need to force a call to draw() and set your x/y limits. > This works for me on matplotlib 1.0.1 > > $ ipython -pylab

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
If I set like vec = 100*numpy.random.random((10,3)) it does not shpw lines even with changing the set_xlimit and set_ylimit. I guess there is something related with scaling. Jin --- > Date: Wed, 13 Jul 2011 16:44:01 -0400 > Subject: Re: [Matplotlib-users] Question on LineCollection

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
", it does not work. Do you have any idea? Jin. --- > Date: Wed, 13 Jul 2011 16:44:01 -0400 > Subject: Re: [Matplotlib-users] Question on LineCollection > From: jne...@gmail.com > To: sulsj0...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > 2011/7/13 S

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN : > Thanks, Justin > > I think I made a confusing example code. Here comes new one: Maybe you just need to force a call to draw() and set your x/y limits. This works for me on matplotlib 1.0.1 $ ipython -pylab # from matplotlib.collections import LineCollection f = fig

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
, 13 Jul 2011 15:32:33 -0400 > Subject: Re: [Matplotlib-users] Question on LineCollection > From: jne...@gmail.com > To: sulsj0...@hotmail.com > CC: matplotlib-users@lists.sourceforge.net > > 2011/7/13 SULSEUNG-JIN : > > Hi, > > > > I'm plotting thousands of

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN : > Hi, > > I'm plotting thousands of short lines on a plot. Because "plot" and "Line2D" > are quite slow for this case, I'm trying to use lineCollection. Here comes > the part of my testing code: > >     ... >     segs = [] > >     # Manual set for testing >     x2 = np.zero

[Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
Hi, I'm plotting thousands of short lines on a plot. Because "plot" and "Line2D" are quite slow for this case, I'm trying to use lineCollection. Here comes the part of my testing code: ... segs = [] # Manual set for testing x2 = np.zeros(2,dtype=int) ys2 = [np.zeros(2,dt