lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.28k stars 1.12k forks source link

Integration with wxWidgets #297

Closed ghost closed 2 years ago

ghost commented 2 years ago

I am currently working with wxWidgets using C++. I managed to finally make the library work with Visual Studio 2019. I tested a sample code and worked perfectly using plt::save() function however when I use the plt::show() It says that there is no backend GUI to show on, using Agg. My PROBLEM now I want use wxWidgets. wxAgg I think it only exist for wxPython not wxWidgets C++. So any Idea on how to integrate the plot in wxWidgets GUI should solve the problem.

ghost commented 2 years ago

I solved it with a stupid work around. I saved the plot as a .png file and loaded it in my frame with a wxPNGHandler