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

Trouble with 3d functionality

Open McEnigma24 opened this issue 10 months ago • 1 comments

Numpy was not working properly, but after putting

pip uninstall numpy pip install "numpy<2"

it was resolved. You can add this to README

But i got this error after running ./surface terminate called after throwing an instance of 'std::runtime_error' what(): No axis Aborted (core dumped)

Other examples worked except for: ./nonblock terminate called after throwing an instance of 'std::runtime_error' what(): Call to subplot() failed. Aborted (core dumped)

./lines3d terminate called after throwing an instance of 'std::runtime_error' what(): No axis Aborted (core dumped)

3d functionality does not work and with WITHOUT_NUMPY defined it does not even compile

In function ‘int main()’: surface.cpp:22:10: error: ‘plot_surface’ is not a member of ‘plt’ 22 | plt::plot_surface(x, y, z); | ^~~~~~~~~~~~

McEnigma24 avatar Mar 05 '25 23:03 McEnigma24