Re: [Matplotlib-users] Performance problems plotting several lines

2010-08-04 Thread Ulf Larsson
>> Is there a cleaner way to do this? > > Use a LineCollection: > > http://matplotlib.sourceforge.net/search.html?q=codex+linecollection > > JDH Exactly what I was looking for. Thank you. /Ulf Larsson

Re: [Matplotlib-users] Performance problems plotting several lines

2010-08-04 Thread John Hunter
On Wed, Aug 4, 2010 at 9:42 AM, Ulf Larsson wrote: > > > Hi, > > I have some performance problems when plotting several lines and would > appreciate some comments. My application plots lots of lines (~5000) > of different sizes. The performance bottleneck lies in the following > code snippet: > >

[Matplotlib-users] Performance problems plotting several lines

2010-08-04 Thread Ulf Larsson
Hi, I have some performance problems when plotting several lines and would appreciate some comments. My application plots lots of lines (~5000) of different sizes. The performance bottleneck lies in the following code snippet: for s in data.layout.segment: x = [] y = [] for p in s.p