Re: [Matplotlib-users] Alpha compositing of ~60000 line plots takes forever

2010-03-16 Thread John Hunter
On Tue, Mar 16, 2010 at 8:46 AM, Jon Olav Vik wrote: > Thank you, thank you, thank you. > > This is just as convenient, 50% faster even for 1000 series, and runtime does > indeed scale as O(n) up to 1 series. The projected speedup for 6 > series > was 40x. However, in my actual use case

Re: [Matplotlib-users] Alpha compositing of ~60000 line plots takes forever

2010-03-16 Thread Jae-Joon Lee
If you're plotting lots of lines, do not use plot but use LineCollection instead. http://matplotlib.sourceforge.net/examples/api/collections_demo.html http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.LineCollection Here is slightly modified version of your code t