C# 图表控件库 ScottPlot

推荐使用ScottPlot原因:

1.图形界面简洁,样式丰富

2.代码较少

3.官方提供多种实例源码,并可以直接通过图形界面查看,便于快速开发

**Github源码链接:**https://github.com/ScottPlot/ScottPlot

**官网WindowFrom Demo实例:**https://scottplot.net/demo/

问题:NuGet安装scottplot后工具箱无法找到FromsPlot

解决:如果通过NuGet安装后,工具线找不到FormsPlot控件,可以在https://scottplot.net/demo/下载demo,然后拷贝其中的ScottPlot.WinForms.dll到运行路径下,工具箱中右键-选择项-浏览选择ScottPlot.WinForms.dll

代码实例:

var plt = formsPlot1.Plot;

double\[\] xs = { 1, 2, 3, 4, 5, 6};

double\[\] sin = { 1, 2, 3, 4, 5, 6 };

double\[\] cos = { 1, 2, 1, 2, 1, 2 };

// plot the data

plt.AddScatter(xs, sin);

plt.AddScatter(xs, cos);

// customize the axis labels

plt.Title("ScottPlot Quickstart");

plt.XLabel("Horizontal Axis");

plt.YLabel("Vertical Axis");

formsPlot1.Refresh();

相关推荐
z落落13 小时前
C#ArrayList 和 List<T>核心对比和数组对比
开发语言·c#·list
Cheng小攸13 小时前
实验九:防火墙安全认证和审计实验
开发语言·安全·php
不会C语言的男孩14 小时前
C++ Primer Plus 第8章:函数探幽
开发语言·c++
方也_arkling1 天前
【Java-Day08】static / final / 枚举
java·开发语言
风吹夏回1 天前
Python 全局异常处理:从“满屏 try-except”到优雅兜底
开发语言·python
Chengbei111 天前
一站式源码安全检测工具、云安全 / APP / 小程序源码敏感信息递归多层目录扫描AK、JWT、手机号、身份证等敏感信息
java·开发语言·安全·web安全·网络安全·系统安全·安全架构
llz_1121 天前
web-第一次课后作业
java·开发语言·idea
小熊Coding1 天前
Python爬取当当网二手图书项目实战!
开发语言·爬虫·python·beautifulsoup·requests·二手图书
秋91 天前
Java项目运行5天左右自动宕机:系统性定位与解决方案
java·开发语言·python
xiaoshuaishuai81 天前
C# 内存管理与资源泄漏
开发语言·c#