matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

The 3D example does not work.

Open ThreeStones1029 opened this issue 1 year ago • 2 comments

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.

ThreeStones1029 avatar May 24 '24 13:05 ThreeStones1029

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.

DamynChipman avatar May 29 '24 17:05 DamynChipman

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.

abnerlam avatar Jun 18 '24 08:06 abnerlam