Skip to content

Commit

Permalink
MacOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed May 11, 2018
1 parent 6863d4a commit 9100aff
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 10 deletions.
32 changes: 27 additions & 5 deletions Docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ The open-source PLplot software is primarily licensed under the [LGPL](http://ww

The PLplot core library can be used to create standard x-y plots, semi-log plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar charts and pie charts. Multiple graphs (of the same or different sizes) may be placed on a single page, and multiple pages are allowed for those device formats that support them.

The following output file formats are supported: PDF, PNG, JPEG, PostScript.
The following output file formats are supported: PDF, PNG, JPEG, PostScript.
Supported operating systems: Linux, MacOS, Windows.

[Click here to see a full gallery of PLplot's abilities.](http://plplot.sourceforge.net/examples.php)

Expand All @@ -17,19 +18,35 @@ The following output file formats are supported: PDF, PNG, JPEG, PostScript.

This project provides a complete, but unofficial, .NET binding for PLplot.
It allows you to use PLplot from C#, F#, Visual Basic or any other .NET language.
We are targeting .NET Standard 2.0 and have tested the bindings on Linux and Windows.
We are targeting .NET Standard 2.0 and have tested the bindings on Linux, MacOS and Windows.

The simplest way of installing the package is to run the following command from inside your project directory.

```dotnet add package PLplot```

Alternatively you can download the NuGet package from <https://www.nuget.org/packages/PLplot>.

The native libraries (x64) for Windows are included, so you don't have to worry about them.
The only requirement is the [Microsoft Visual C++ Redistributable 2017](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
### Linux

For Linux, PLplot must be preinstalled on your system, i.e. we are expecting to find `libplplot.so.15` in your `LD_LIBRARY_PATH`.
For Linux, PLplot must be pre-installed on your system, i.e. we are expecting to find `libplplot.so.15` in your `LD_LIBRARY_PATH`.
Usually a recent package from your favorite distribution will work fine.
On Ubuntu you can run the following command to install the necessary dependencies.

```sudo apt install libplplot15 plplot-driver-cairo```

### MacOS

On MacOS, PLplot must also be pre-installed on your system.
We are expecting to find `libplplot.dylib` in your `LD_LIBRARY_PATH`.
Using [Homebrew](https://brew.sh/) the necessary dependencies can be installed by running the following command.

```brew install plplot```

### Windows

The native libraries for Windows (x64) are included, so you don't have to worry about them.
The only requirement is that the [Microsoft Visual C++ Redistributable 2017](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads) is installed on your system.


## Documentation

Expand All @@ -45,4 +62,9 @@ We also provide [mostly complete reference documentation](xref:PLplot.PLStream).
Source code is available at <https://github.com/surban/PLplotNet>.
Please use GitHub to report trouble with the library and send me your pull request.

## Authors

[Sebastian Urban](http://www.surban.net) (.NET bindings)
[PLplot developers](http://plplot.sourceforge.net/credits.php)

***
7 changes: 4 additions & 3 deletions PLplotNet/PLplotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ bar charts and pie charts. Multiple graphs (of the same or different sizes)
may be placed on a single page, and multiple pages are allowed for those
device formats that support them.

The native PLplot library (x64) for Windows is included in this package.
For Linux, PLplot must be already installed on your system and
we expect to find libplplot.so.15 in your LD_LIBRARY_PATH.
The native PLplot library for Windows (x64) is included in this package.
For Linux and MacOS, PLplot must be already installed on your system and
we expect to find libplplot.so.15 or libplplot.dylib in your LD_LIBRARY_PATH.

Supported operating systems: Linux, MacOS, Windows
Output file formats: PDF, PNG, SVG, Xfig and others

Documentation: https://surban.github.io/PLplotNet
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# PLplot bindings for .NET
# PLplot bindings for .NET Standard 2.0
[![Build status](https://ci.appveyor.com/api/projects/status/byma2lmdgl54m3h9?svg=true)](https://ci.appveyor.com/project/surban/plplotnet)

[PLplot](http://plplot.sourceforge.net/) is a cross-platform software package for creating scientific plots whose (UTF-8) plot symbols and text are limited in practice only by what Unicode-aware system fonts are installed on a user's computer.

The PLplot core library can be used to create standard x-y plots, semi-log plots, log-log plots, contour plots, 3D surface plots, mesh plots, bar charts and pie charts. Multiple graphs (of the same or different sizes) may be placed on a single page, and multiple pages are allowed for those device formats that support them.

Supported operating systems: Linux, MacOS, Windows

Output File Formats: PDF, PNG, JPEG, PostScript

## .NET Standard 2.0 bindings
Expand Down
2 changes: 1 addition & 1 deletion Revision.targets
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<Project><PropertyGroup><Version>5.13.6</Version></PropertyGroup></Project>
<Project><PropertyGroup><Version>5.13.7</Version></PropertyGroup></Project>

0 comments on commit 9100aff

Please sign in to comment.