For using matplotlibcpp17 from CMakeLists.txt, see [hello_world](https://github.com/soblin/matplotlibcpp17/tree/master/hello_world) example.
Or you could just add include path to `include` directory and compile your codes as descibed in [minimal example](#minimal-example).
## Syntax
...
...
@@ -148,13 +159,17 @@ From [gallery/artist_animation/random_walk.cpp](https://github.com/soblin/matplo
### build
If you do not need to build the demos, use `-DADD_DEMO=0` (by default it is `1`).
```bash
mkdir build;cd build; cmake .. ; make -j
$ mkdir build;cd build
$ cmake .. -DADD_DEMO={0, 1}-DUSE_GUI={0, 1}
$ make -j
```
If you want to see the demo with `plt.show()`, add`-DUSE_GUI=1` (by default it is `0`). Otherwise the executables will `plt.savefig()` to `gallery/images` directory.
If you do not need to see the demo with `plt.show()`, use`-DUSE_GUI=0` (by default it is `1`). Otherwise the executables will `plt.savefig()` to `gallery/images` directory.
`make <gallery directory name>` runs all executables under that directory.
`make <gallery directory name>` runs all the executables under that directory.