(1)拷贝matplotlibcpp.h头文件到自己工程 GitHub - lava/matplotlib-cpp: Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlibExtremely simple yet powerful header-only C++ plotting library built on the popular matplotlib - GitHub - lava/matplotlib-cpp: Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlibhttps://github.com/lava/matplotlib-cpp (2)引入Python库 (3)写代码