Re: [Matplotlib-users] Question on LineCollection

2011-07-14 Thread Justin McCann
On Wed, Jul 13, 2011 at 6:49 PM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote: $ ipython -pylab # from matplotlib.collections import LineCollection f = figure() plot() ax = gca() vec = numpy.random.random((10,3)) segs = []

[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 =

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: 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 =

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
: [Matplotlib-users] Question on LineCollection From: jne...@gmail.com To: sulsj0...@hotmail.com CC: matplotlib-users@lists.sourceforge.net 2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: Hi, I'm plotting thousands of short lines on a plot. Because plot and Line2D are quite slow

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Justin McCann
2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: 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

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread SULSEUNG-JIN
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 SULSEUNG-JIN sulsj0...@hotmail.com: Thanks, Justin I think I made a confusing example code. Here comes new

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 From

Re: [Matplotlib-users] Question on LineCollection

2011-07-13 Thread Benjamin Root
On Wednesday, July 13, 2011, Justin McCann jne...@gmail.com wrote: 2011/7/13 SULSEUNG-JIN sulsj0...@hotmail.com: 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