>> 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
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:
>
>
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