From 9100aff794115b7578526e6f06a77cfb06063916 Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Fri, 11 May 2018 13:40:00 +0200 Subject: [PATCH] MacOS support --- Docs/index.md | 32 +++++++++++++++++++++++++++----- PLplotNet/PLplotNet.csproj | 7 ++++--- README.md | 4 +++- Revision.targets | 2 +- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/Docs/index.md b/Docs/index.md index 91f558a..5e4ca4f 100644 --- a/Docs/index.md +++ b/Docs/index.md @@ -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) @@ -17,7 +18,7 @@ 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. @@ -25,11 +26,27 @@ The simplest way of installing the package is to run the following command from Alternatively you can download the NuGet package from . -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 @@ -45,4 +62,9 @@ We also provide [mostly complete reference documentation](xref:PLplot.PLStream). Source code is available at . 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) + *** diff --git a/PLplotNet/PLplotNet.csproj b/PLplotNet/PLplotNet.csproj index 4d82d37..4aa3ecf 100644 --- a/PLplotNet/PLplotNet.csproj +++ b/PLplotNet/PLplotNet.csproj @@ -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 diff --git a/README.md b/README.md index a67987c..5ab0d21 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Revision.targets b/Revision.targets index e830f6d..5202a8d 100644 --- a/Revision.targets +++ b/Revision.targets @@ -1 +1 @@ -5.13.6 +5.13.7