/Matplotlib_cpp

matplot lib header

Primary LanguageC++MIT LicenseMIT

Matplotlib_cpp

This work is base on this repository. The idea is to provide an easier implementation of matplotlibcpp for the users.

Usage

In order to work with matplotlibcpp, 2dplot folder contains a basic implementation of the library. The CMake file contains these commands that need to be changed according to your path.

target_include_directories(main PRIVATE include
			   main PRIVATE /home/ghailen/anaconda3/include/python3.7m
			   main PRIVATE /home/ghailen/anaconda3/lib/python3.7/site-packages/numpy/core/include)

target_link_libraries(main /home/ghailen/anaconda3/lib/libpython3.7m.so)

2dplot

Once paths are set, you can build and excecute by accessing to 2dplot folder and running the following commands.

mkdir build && cd build
cmake ..
make
./main

Image

3dplot

Same steps should be reproduced in order to make a 3d plot. Starting by accessing 3dplot and running the following commands.

mkdir build && cd build
cmake ..
make
./main

Image