An open API service indexing awesome lists of open source software.

https://github.com/scisharp/plot.net

.NET wrapper of plotly.js for ICSharpCore
https://github.com/scisharp/plot.net

Last synced: about 1 year ago
JSON representation

.NET wrapper of plotly.js for ICSharpCore

Awesome Lists containing this project

README

          

# Plot.NET
Plot data as HTML

[![Join the chat at https://gitter.im/publiclab/publiclab](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sci-sharp/community) [![NuGet](https://img.shields.io/nuget/dt/PlotNET.svg)](https://www.nuget.org/packages/PlotNET)

Convert data into `plotly.js` compatible format and generate an HTML showing in any browser.

The API keep same as `matplotlib`.

For example:

```csharp
var trace1 = new
{
x: new int[]{1, 2, 3, 4},
y: new int[]{10, 15, 13, 17},
type: 'scatter'
};

var trace2 = new
{
x: new int[]{1, 2, 3, 4},
y: new int[]{16, 5, 11, 9},
type: 'scatter'
};
```

```html


TESTER = document.getElementById('tester');

Plotly.plot( TESTER, [{
x: [1, 2, 3, 4, 5],
y: [1, 2, 4, 8, 16] }], {
margin: { t: 0 } }, {showSendToCloud:true} );

```