Menu

Embedding matplotlib in C++ app

Help
P Dempsey
2010-11-30
2013-04-06
  • P Dempsey

    P Dempsey - 2010-11-30

    Has anyone tried embedding matplotlib in a C++ Qt app using PythonQt?

    Is it "just" a case of translating the backend_qt4agg and backend_qt4 modules of matplotlib from PyQt4 to PythonQt?

     
  • Florian Link

    Florian Link - 2010-11-30

    Yes, I think it should mainly be replacing PyQt4 with PythonQt imports and maybe some minor details.
    I am not familiar with the backends, if they derive QObjects via Python you either might be lucky and it just works, or
    you might run into PythonQt bugs… But as far as I remember the backend is mainly drawing a QImage with the results,
    so you should be able to get it running.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.