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
This library is tailored to write script files for Gnuplot. As such, Gnuplot is required to make use of the output of this library. Gnuplot can be found [here](http://www.gnuplot.info/).
9
+
## GNUPLOT
10
+
This library is tailored to write script files for GNUPLOT. As such, GNUPLOT is required to make use of the output of this library. GNUPLOT can be found [here](http://www.gnuplot.info/).
11
11
12
12
## Documentation
13
13
Documentation can be found [here](https://jchristopherson.github.io/fplot/)
14
14
15
+
## Building FPLOT
16
+
[CMake](https://cmake.org/)This library can be built using CMake. For instructions see [Running CMake](https://cmake.org/runningcmake/).
17
+
18
+
[FPM](https://github.com/fortran-lang/fpm) can also be used to build this library using the provided fpm.toml.
19
+
```txt
20
+
fpm build
21
+
```
22
+
The FPLOT library can be used within your FPM project by adding the following to your fpm.toml file.
This example illustrates how to plot two-dimensional data.
17
38
```fortran
18
-
! fplot_2d_1.f90
19
-
20
39
program example
21
40
use, intrinsic :: iso_fortran_env
22
41
use fplot_core
@@ -154,54 +173,51 @@ This is the plot resulting from the above program.
154
173

155
174
156
175
## Example 3
157
-
The following example illustrates how to create a three-dimensional surface plot.
176
+
The following example illustrates how to create a three-dimensional surface plot. The plot also leverages the [FORCOLORMAP](https://github.com/vmagnin/forcolormap) library to provide the colormap.
This is the plot resulting from the above program.
223
-

240
+

224
241
225
242
## Example 4
226
-
The following example illustrates how to create a vector-field plot.
243
+
The following example illustrates how to create a vector-field plot. This example illustrates using one of the built-in colormaps to to help illustrate vector magnitude.
227
244
```fortran
228
245
program example
229
246
use iso_fortran_env
@@ -335,22 +352,3 @@ end program
335
352
This is the plot resulting from the above program.
336
353

337
354
338
-
## Building FPLOT
339
-
[CMake](https://cmake.org/)This library can be built using CMake. For instructions see [Running CMake](https://cmake.org/runningcmake/).
340
-
341
-
[FPM](https://github.com/fortran-lang/fpm) can also be used to build this library using the provided fpm.toml.
342
-
```txt
343
-
fpm build
344
-
```
345
-
The FPLOT library can be used within your FPM project by adding the following to your fpm.toml file.
0 commit comments