Skip to content

Commit

Permalink
Add: fpm usage information to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
LKedward committed Apr 30, 2021
1 parent 36c6d7f commit 548729e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
# ogpf
Object Based Interface to GnuPlot from Fortran (ogpf)

## Usage

__Prerequisite:__ [gnuplot](http://www.gnuplot.info/) must be installed on your system.

### Fortran Package Manager (fpm)

To use ogpf with your [fpm](https://github.com/fortran-lang/fpm) project, add the following to your package manifest file (`fpm.toml`):

```toml
[dependencies]
ogpf = { git = "https://github.com/kookma/ogpf.git" }
```

You can then `use` the package as normal in your Fortran program with `use ogpf`.

To run the example program in this package with fpm:

```sh
$ git clone https://github.com/kookma/ogpf.git
$ cd ogpf
$ fpm build
$ fpm run --example
```

## 2D Plots

Simple plot | Animation
Expand Down

0 comments on commit 548729e

Please sign in to comment.