# ScottPlot
**ScottPlot is a free and open-source interactive graphing library for .NET written in C#.**
In a GUI environment ScottPlot makes it easy to display data interactively (left-click-drag pan, right-click-drag zoom), and in non-GUI environments ScottPlot can be used to create graphs and save them as images. ScottPlot was designed to be fast enough to interactively display large datasets with millions of points at high framerates. ScottPlot is easy to integrate into .NET projects because it is [available on NuGet](https://www.nuget.org/packages/ScottPlot/) and has no dependencies outside the .NET framework libraries.
[![](https://raw.githubusercontent.com/swharden/ScottPlot/master/demos/ScottPlotDemo/compiled/ScottPlotDemo-small.gif)](https://github.com/swharden/ScottPlot)
## Links
* [Project page](https://github.com/swharden/ScottPlot)
* [Documentation](https://github.com/swharden/ScottPlot/tree/master/doc)
* [Cookbook](https://github.com/swharden/ScottPlot/tree/master/doc/cookbook)
## Quickstart: Windows Forms
1. Drag/Drop ScottPlotUC (from the toolbox) onto your form
2. Add this code to your startup sequence:
```cs
double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
scottPlotUC1.plt.PlotScatter(xs, ys);
scottPlotUC1.plt.AxisAuto();
scottPlotUC1.Render();
```
## Quickstart: Console Application ###
```cs
double[] xs = new double[] { 1, 2, 3, 4, 5 };
double[] ys = new double[] { 1, 4, 9, 16, 25 };
var plt = new ScottPlot.Plot(600, 400);
plt.PlotScatter(xs, ys);
plt.AxisAuto();
plt.SaveFig("demo.png");
```
码农张三疯
- 粉丝: 1w+
- 资源: 1万+
最新资源
- dataCollection-资源文件
- Java-Interview-Advanced-啊哦111
- Pear Admin Layui-资源文件
- 1615-1.6米写真机(数码印花机) sw14可编辑全套技术资料100%好用.zip
- FDG-A1∕D-56电子防盗保险柜sw16可编辑全套技术资料100%好用.zip
- A17038产品自动锁螺丝机sw17可编辑全套技术资料100%好用.zip
- 半自动U型上止焊接机(sw16可编辑+工程图)全套技术资料100%好用.zip
- 四工位高速塞棉机sw18全套技术资料100%好用.zip
- 消磁生产线sw17可编辑全套技术资料100%好用.zip
- 2.5mm铜箔焊线机sw19可编辑全套技术资料100%好用.zip
- 20T双级级水处理设备step全套技术资料100%好用.zip
- C语言编程实现不同类型的圣诞树
- HTML与JavaScript实现圣诞节飘雪效果代码详解
- 20米双层倍速链sw18可编辑全套技术资料100%好用.zip
- MC-160袋式除尘器sw18可编辑全套技术资料100%好用.zip
- 毕业设计-基于Flask健身论坛 详细文档+全部资料+高分项目.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈