Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[request] matplotlib-cpp/master #3033

Open
mohamedghita opened this issue Sep 28, 2020 · 4 comments · May be fixed by #22256
Open

[request] matplotlib-cpp/master #3033

mohamedghita opened this issue Sep 28, 2020 · 4 comments · May be fixed by #22256

Comments

@mohamedghita
Copy link

Package Details

Description Of The Library / Tool

possibly the simplest C++ plotting library. It is built to resemble the plotting API used by Matlab and matplotlib.

@madebr
Copy link
Contributor

madebr commented Sep 28, 2020

This is a wrapper around the python matplotlib library.
So it requires python(3) and the python matplotlib library.

The first can be packaged by conan, but we don't have packaged a python library before.

@mohamedghita
Copy link
Author

mohamedghita commented Sep 29, 2020

This is how I add it to my CMakeLists.txt

#### findPython3
set(Python3_ROOT_DIR "/opt/local/bin")
find_package(Python3 REQUIRED COMPONENTS Development NumPy)
set(CONAN_LIBS ${CONAN_LIBS} Python3::Python Python3::NumPy)

I guess we can make an option in the recipe to set the location of "Python3_ROOT_DIR" and use CMake to find Python and Numpy. But the user need to make sure that numpy and matplotlib are installed using pip or other python package manager. The library itself has a couple of options: WITHOUT_NUMPY and WITH_OPENCV.

On another thought, does it make sense to write a python installer-package with a few py libs options? the same idea like Conan CMake installer package!

@blackliner
Copy link
Contributor

See #4212

@hwhsu1231
Copy link

According to: #4212 (comment)

If matplotlib-cpp is hard to compile and be used in Conan, then why not focus on the matplotplusplus library?

I see that this matplotplusplus library request is already posted: #7086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants