<div dir="ltr"><div>Sounds like you are describing the need for blitting, which most of the backends support in one way or another. The blitting pathways were designed with animations in mind, but I don't see why it couldn't be hijacked for your use as well. Note, you will have to do manual calls to copy_from_bbox() and such, but it should be doable.<br><br></div>Ben Root<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 1, 2016 at 9:21 AM, Holmes, Oliver <span dir="ltr"><<a href="mailto:Oliver.Holmes@smtonline.de" target="_blank">Oliver.Holmes@smtonline.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hey all,
<div><br>
</div>
<div>I’m trying to use matplotlib on a Raspberry Pi to visualize data the Pi receives via serial port - and of course I’m new to Python and matplotlib. The visualization need not be online, rather in form of a PDF once no more data is received. Then
 however as quick as possible. Please refer to my SO question for more details: <a href="http://stackoverflow.com/questions/35629471/need-help-to-solve-performance-problems-of-matplotlib-on-a-raspberry-pi" target="_blank">http://stackoverflow.com/questions/35629471/need-help-to-solve-performance-problems-of-matplotlib-on-a-raspberry-pi</a></div>
<div>Nevertheless here is a brief summary: During the better part of an hour my program does nothing but wait for input on the serial port, which is received once a second. During this waiting time it could already begin rendering the chart, and then
 just save it to file, once it’s done. I have not found out how to do this however. Whats more, I have read quite discouraging posts concerning the need to recalculate the axes and so forth. As an alternative to rendering the entire grid in the program, I guess
 it would be an improvement (speedwise) if I could just use an image of the grid and repeat it (as in tiling). But I have not quite found the means to do that either. Concerning the grid layout please refer to my other SO question <a href="http://stackoverflow.com/questions/35551080/is-it-possible-to-generate-a-chart-with-this-very-specific-background" target="_blank">http://stackoverflow.com/questions/35551080/is-it-possible-to-generate-a-chart-with-this-very-specific-background</a>.</div>
<div><br>
</div>
<div>Thanks a lot for reading…and perhaps answering :)</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Oliver Holmes</div>
</div>

<br>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
<br></blockquote></div><br></div>