You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+61-14Lines changed: 61 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1617,15 +1617,17 @@ tiledlayout(rows, cols);
1617
1617
nexttile();
1618
1618
```
1619
1619
1620
-
Our tiling functions are convenience shortcuts for the subplot functions. If there is no room for the next tile, we automatically rearrange the axes and increase the number of subplot rows or columns to fit the next tile. Use subplots for more control over the subplots.
Our tiling functions are convenience shortcuts for the subplot functions. If there is no room for the next tile, we automatically rearrange the axes and increase the number of subplot rows or columns to fit the next tile. Use subplots for more control over the subplots.
1629
1631
1630
1632
#### Colormaps
1631
1633
@@ -2026,7 +2028,7 @@ Get the binary package from the [release section](https://github.com/alandefreit
2026
2028
2027
2029
If you need a more recent version of Matplot++, you can download the [binary packages from the CI artifacts](https://github.com/alandefreitas/matplotplusplus/actions?query=workflow%3AMatplotplusplus+event%3Apush) or build the library [from the source files](#build-from-source).
2028
2030
2029
-
Once the package is installed, you can link your C++ program to the library and include the directories where you installed Matplot++. Unless you changed the default options, the library is likely to be in `/usr/local/` (Linux / Mac OS) or `C:/Program Files/` (Windows).
2031
+
Once the package is installed, you can link your C++ program to the library and include the directories where you installed Matplot++. Unless you changed the default options, the library is likely to be in `/usr/local/` (Linux / Mac OS) or `C:/Program Files/` (Windows). The installer will try to find the directory where you usually keep your libraries but that's not always perfect.
2030
2032
2031
2033
If you are using CMake, you can then find Matplot++ with the usual `find_package` command:
CMake should be able to locate the `matplot++-config.cmake` script automatically if you installed the library under `/usr/local/` (Linux / Mac OS) or `C:/Program Files/` (Windows). Otherwise, you need to include your installation directory in `CMAKE_MODULE_PATH` first:
@@ -2186,7 +2197,7 @@ If you're using the Gnuplot installer, make sure you mark the option "Add applic
2186
2197
2187
2198
</details>
2188
2199
2189
-
It will also look for these *optional* dependencies for manipulating images:
2200
+
The build script will also look for these *optional* dependencies for manipulating images:
2190
2201
2191
2202
* JPEG
2192
2203
* TIFF
@@ -2204,51 +2215,78 @@ There are two dependencies in [`source/3rd_party`](source/3rd_party). These depe
2204
2215
2205
2216
You can define `WITH_SYSTEM_NODESOUP=ON` or `WITH_SYSTEM_CIMG=ON` in the cmake command line to use a system-provided version of these dependencies.
2206
2217
2207
-
There's an extra target `matplot_opengl` with the experimental OpenGL backend. You need to define `BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON` in the CMake command line to build that target. In that case, the build script will also look for these extra dependencies:
2218
+
There's an extra target `matplot_opengl` with the experimental [OpenGL backend](#backends). You need to define `BUILD_EXPERIMENTAL_OPENGL_BACKEND=ON` in the CMake command line to build that target. In that case, the build script will also look for these extra dependencies:
2208
2219
2209
2220
* OpenGL
2210
2221
* GLAD
2211
2222
* GLFW3
2212
2223
2224
+
<details>
2225
+
<summary>Instructions: Linux/Ubuntu/GCC</summary>
2226
+
2227
+
```bash
2228
+
sudo apt-get install libglfw3-dev
2229
+
```
2230
+
2231
+
</details>
2232
+
2233
+
<details>
2234
+
<summary>Instructions: Mac Os/Clang</summary>
2235
+
2236
+
Download GLFW3 from https://www.glfw.org
2237
+
2238
+
</details>
2239
+
2240
+
<details>
2241
+
<summary>Instructions: Windows/MSVC</summary>
2242
+
2243
+
Download GLFW3 from https://www.glfw.org
2244
+
2245
+
</details>
2246
+
2213
2247
You can see all dependencies in [`source/3rd_party/CMakeLists.txt`](source/3rd_party/CMakeLists.txt).
2214
2248
2215
2249
#### Build the Examples
2216
2250
2251
+
This will build the examples in the `build/examples` directory:
On windows, replace `-O2` with `/O2`. You might need `sudo` for this last command.
2252
2290
2253
2291
### CMake targets
2254
2292
@@ -2388,6 +2426,15 @@ There are many ways in which you can contribute to this library:
2388
2426
* Finding bugs in general <sup>see [1](https://github.com/alandefreitas/matplotplusplus/issues?q=is%3Aopen+is%3Aissue+label%3A%22bug+-+compilation+error%22), [2](https://github.com/alandefreitas/matplotplusplus/issues?q=is%3Aopen+is%3Aissue+label%3A%22bug+-+compilation+warning%22), [3](https://github.com/alandefreitas/matplotplusplus/issues?q=is%3Aopen+is%3Aissue+label%3A%22bug+-+runtime+error%22), [4](https://github.com/alandefreitas/matplotplusplus/issues?q=is%3Aopen+is%3Aissue+label%3A%22bug+-+runtime+warning%22) </sup>
2389
2427
* Whatever idea seems interesting to you
2390
2428
2429
+
If contributing with code, please leave the OpenGL backend and pedantic mode ON (`-DBUILD_EXPERIMENTAL_OPENGL_BACKEND=ON -DBUILD_WITH_PEDANTIC_WARNINGS=ON`).
2430
+
2431
+
<details>
2432
+
<summary>Example: CLion</summary>
2433
+
2434
+

0 commit comments