Interactive backends very (suprisingly?) slow for multiple subplots

keflavich <keflavich@...287...> writes:

I tried the same series of plot commands using the SVG, PS, and PDF backends
and the whole series of 50 plots takes <~1s.

Did you produce any output with savefig? 50 plots per second sounds
pretty fast - at least on my computer, the matplotlib examples render
much slower than that, so I suspect your test script might not have
really caused the backends to render anything. Anyway, if you want to
compare the execution time of the interactive backends, I suppose the
best reference would be the Agg backend, which does the same rendering
without any of the interactiveness.

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks

Jouni K. Seppänen wrote:

keflavich <keflavich@...287...> writes:

I tried the same series of plot commands using the SVG, PS, and PDF
backends
and the whole series of 50 plots takes <~1s.

Did you produce any output with savefig? 50 plots per second sounds
pretty fast - at least on my computer, the matplotlib examples render
much slower than that, so I suspect your test script might not have
really caused the backends to render anything. Anyway, if you want to
compare the execution time of the interactive backends, I suppose the
best reference would be the Agg backend, which does the same rendering
without any of the interactiveness.

Yes, I'm using savefig. I switched to the 'Paint' backend so I can save as
.png and use Mac's preview to view the files as they're updated; that's my
cheap workaround for the moment.

I tried 'agg' and it performs essentially the same as 'Paint' - pretty fast.
Maybe closer to 2-3s than 1s.

Adam

···

--
View this message in context: http://www.nabble.com/Interactive-backends-very-(suprisingly-)-slow-for-multiple-subplots-tp23261074p23261638.html
Sent from the matplotlib - users mailing list archive at Nabble.com.