<div dir="ltr"><div><div><div>Thank you Chris for your reply.<br><br>I have to admit I already stumbled on VisPy while doing my research on the web. Still, I've got a lot of code already working with <i>matplotlib</i>. Indeed, not only I plot data with it, but i manage a lot of <i>mpl events</i> to provide the users usefool tools, like lines picking, tooltips, lines copy/paste, square selectors for multiple selections, context menu and so on. Moreover, I got matplotlib <b>embedded </b>on <i>wxpython </i>as well. While at the beginning few lines were managed and noone complained, now that big amout of data has to be displayed, the non-GPU core of the library is starting to show its limits.<br><br></div>Since matplotlib is a reference library for this kind of  applications, I thought it deserved an update in this direction. If anyone is willing to do so, I'm available to discuss possible solutions and also provide any help I can give.<br><br></div>Best regards,<br></div>Francesco Faccenda<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-13 0:46 GMT+02:00 Chris Barker <span dir="ltr"><<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Tue, Sep 12, 2017 at 8:47 AM, Francesco Faccenda <span dir="ltr"><<a href="mailto:f.faccenda86@gmail.com" target="_blank">f.faccenda86@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="MsoNormal">But there’s a good news, I have a nice GPU available (an NVIDIA Tesla
K40c), so I’d like to know if there is a way to make matplotlib run on it, or
maybe wrap it on some GPU/CUDA wrapper and make it run smoothly.<br></p></div></blockquote><div><br></div></span><div>I tihnk you want VisPy:</div><div><br></div><div><a href="https://vispy.readthedocs.io/en/latest/" target="_blank">https://vispy.readthedocs.io/<wbr>en/latest/</a><br></div><div><br></div><div>It's a plotting package with a kinda like  matplotlib API, built on OpenGL.</div><div><br></div><div>Unfortunately, it doesn't look like it's been updated in a while -- from teh docs. But the gitHub project is active:</div><div><br></div><div><a href="https://github.com/vispy/vispy" target="_blank">https://github.com/vispy/vispy</a><br></div><div><br></div><div>So maybe it's only the docs that haven't been updated!</div><div><br></div><div>But probably  a much better option than trying to shoehorn GPU rendering into MPL.</div><div><br></div><div>The problem is that while MPL was designed to be "backend" independent -- so it is "easy" to plug in an alternative renderer, the rendering model is not really well suited to GPU rendering -- it would take a lot of refactoring to really be able to take advantage of the graphics card.</div><div><br></div><div>-CHB</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-9015833126011210045gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            <a href="tel:(206)%20526-6959" value="+12065266959" target="_blank">(206) 526-6959</a>   voice<br><a href="https://maps.google.com/?q=7600+Sand+Point+Way+NE&entry=gmail&source=g">7600 Sand Point Way NE</a>   <a href="tel:(206)%20526-6329" value="+12065266329" target="_blank">(206) 526-6329</a>   fax<br>Seattle, WA  98115       <a href="tel:(206)%20526-6317" value="+12065266317" target="_blank">(206) 526-6317</a>   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</font></span></div></div>
</blockquote></div><br></div></div></div></div>