<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">MPL does not have a backend that used “real” GPU rendering.<div><br></div><div>And it’s very hard to make one, due to the really low level nature of OpenGL and similar APIs, and MPL’s rendering model.</div><div><br></div><div>You might try VisPy — it was designed for OpenGL from the start.</div><div><br></div><div><br></div><div>-CHB<br><br><div id="AppleMailSignature">Sent from my iPhone</div><div><br>On Jul 5, 2018, at 5:37 AM, Francesco Faccenda <<a href="mailto:f.faccenda86@gmail.com">f.faccenda86@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">



















<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">Dear all,<span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span> </span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">I am writing
to you because of an issue regarding the use of OpenGL in cairo backends from matplotlib. As I set
a cairo backend with the instruction matplotlib.Use(“WXCairo”), there is evidence
that the graphic computation is not being carried out by the graphic card.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">Since the
significative amount of plotted data, the chart are heavy and slow when the
user is interacting with them, so a graphic acceleration would be really
appreciated.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span> </span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">As a side
note, I am embedding matplotlib canvas on wxPython stages, that’s why I choose
WXCairo as backend, at first. However, setting other backends (GTKCario, TKCairo, Qt4Cairo,
Qt5Cairo etc) while still using wx, still provides a working code without any errors,
even if the graphic card is still not exploited.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">Is this an
actual malfunction or am I missing something? What should I do to run matplotlib
graphic computation on a graphic card? Thank you in advance.<span></span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span> </span></span></p><p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US"><span>Best regards,<br></span></span></p>

<p class="MsoNormal" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span lang="EN-US">Francesco Faccenda<span></span></span></p>





<br></div>
</div></blockquote><blockquote type="cite"><div><span>------------------------------------------------------------------------------</span><br><span>Check out the vibrant tech community on one of the world's most</span><br><span>engaging tech sites, <a href="http://Slashdot.org">Slashdot.org</a>! <a href="http://sdm.link/slashdot">http://sdm.link/slashdot</a></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Matplotlib-devel mailing list</span><br><span><a href="mailto:Matplotlib-devel@lists.sourceforge.net">Matplotlib-devel@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/matplotlib-devel">https://lists.sourceforge.net/lists/listinfo/matplotlib-devel</a></span><br></div></blockquote></div></body></html>