[Matplotlib-devel] Cairo backends and OpenGL use

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Matplotlib-devel] Cairo backends and OpenGL use

Francesco Faccenda

Dear all,

 

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.

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.

 

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.

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.

 

Best regards,

Francesco Faccenda



_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel
Reply | Threaded
Open this post in threaded view
|

Re: [matplotlib-devel] Cairo backends and OpenGL use

matplotlib - devel mailing list
MPL does not have a backend that used “real” GPU rendering.

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.

You might try VisPy — it was designed for OpenGL from the start.


-CHB

Sent from my iPhone

On Jul 5, 2018, at 5:37 AM, Francesco Faccenda <[hidden email]> wrote:

Dear all,

 

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.

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.

 

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.

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.

 

Best regards,

Francesco Faccenda


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

_______________________________________________
Matplotlib-devel mailing list
[hidden email]
https://mail.python.org/mailman/listinfo/matplotlib-devel