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
- Host: GitHub
- URL: https://github.com/scisharp/plot.net
- Owner: SciSharp
- License: apache-2.0
- Created: 2019-02-25T20:54:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T02:42:08.000Z (over 4 years ago)
- Last Synced: 2025-06-02T15:44:17.254Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 27.3 KB
- Stars: 65
- Watchers: 7
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plot.NET
Plot data as HTML
[](https://gitter.im/sci-sharp/community) [](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} );
```