lava / matplotlib-cpp

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

The 3D example does not work. #360

Open ThreeStones1029 opened 4 months ago

ThreeStones1029 commented 4 months ago

After I install it, all the 2D examples work fine, but the 3D example will report errors. The error is as follows. terminate called after throwing an instance of 'std::runtime_error' what(): No axis Has anyone ever encountered this problem? I guess the error is due to a version issue, because I think this project is calling the python version of the library. If anyone knows how to solve it, can you reply me? Thank you very much.

DamynChipman commented 4 months ago

I had the same issue. When I switched my matplotlib package version (specifically to 3.3.2) through a conda environment, it worked. I am using Python 3.8.

abnerlam commented 3 months ago

After I install it, all the 2D examples work fine, but the 3D example will report errors. The error is as follows. terminate called after throwing an instance of 'std::runtime_error' what(): No axis Has anyone ever encountered this problem? I guess the error is due to a version issue, because I think this project is calling the python version of the library. If anyone knows how to solve it, can you reply me? Thank you very much.

The error is due to the version,(3.7.0~3.9.0) I'm using matplotlib==3.4.0, python==3.9.12, that is work.