Skip to content

Introduce MatplotlibC++ & apply to `mmstruc` code

Ghost User requested to merge cmake-matplotlibcpp into master

Introducing the MatplotlibC++ interface for using Python's matplotlib plotting library from within C++. With this we can remove the MathGL and Figure dependencies, which are not maintained anymore (latter at least), do not work as well as MatplotlibC++, and do not produce plots of the same quality.

  • the CMakeLists.txt looks and includes Python3 and NumPy (not yet automatically installed if not there, but pretty much any user has these installed anyways)
  • added the (header-only) library: MatplotlibC++/matplotlibcpp.h
  • modified LectureCodes/MatVec/Dense/mmstruc to use MatplotlibC++ instead of Figure

Left todo:

  • automatically install Python3 and NumPy if not present
  • test on different OS (currently works on Mac OS)

Merge request reports