lava / matplotlib-cpp

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

error: ‘specgram’ is not a member of ‘plt’ #270

Closed yarin177 closed 3 years ago

yarin177 commented 3 years ago

I want to plot a Spectrogram with this Library, I did it using Python with the same Library and it worked fine, why am I getting errors trying to do this?

plt::specgram(x2,Fs);

anthomas01 commented 3 years ago

Its not included in the header, so the matplotlibcpp library does not know how to communicate it to the python interpreter. You can probably add it, look at the matplotlibcpp.h and use another function like plot() as an example.