zedgraph

Charting massive amounts of data

一世执手 提交于 2019-11-29 06:23:19
问题 We are currently using ZedGraph to draw a line chart of some data. The input data comes from a file of arbitrary size, therefore, we do not know what the maximum number of datapoints in advance. However, by opening the file and reading the header, we can find out how many data points are in the file. The file format is essentially [time (double), value (double)]. However, the entries are not uniform in the time axis. There may not be any points between say t = 0 sec and t = 10 sec, but there

Winforn中实现ZedGraph自定义添加右键菜单项(附源码下载)

社会主义新天地 提交于 2019-11-28 22:26:03
场景 Winform中实现ZedGraph中曲线右键显示为中文: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100115292 在上面实现将ZedGraph的右键显示为中文后,再实现自定义菜单的添加。 效果 源码下载 https://download.csdn.net/download/badao_liumang_qizhi/11636420 实现 前面已经将鼠标的右键事件与方法绑定 this.zedGraphControl1.ContextMenuBuilder += MyContextMenuBuilder; 在方法MyContextMenuBuilder中 //新建菜单项对象 ToolStripMenuItem item1 = new ToolStripMenuItem(); //设置名字 item1.Name = "line_set"; //设置显示文本 item1.Text = "霸道流氓"; //点击事件与方法绑定 item1.Click += mouseEnter; //菜单项添加到右键菜单 menuStrip.Items.Add(item1); 实现了添加一个右键菜单,将其点击事件与mouseEnter方法绑定。 在窗体类下定义事件 //MouseEventHandler :表示将处理窗体

Winform中对ZedGraph的曲线标签进行设置,比如去掉标签边框

佐手、 提交于 2019-11-28 21:48:33
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 在上面实现曲线相关属性的设置的基础上,实现的效果如下: 什么是曲线标签,就是上图中标题下带有横线的曲线说明(曲线1)的东西。 现在要将其边框去掉。 实现 首先去掉之前对图表颜色的填充。 //填充图表颜色 //myPane.Fill = new Fill(Color.White, Color.LightGray, 45.0f); 然后对曲线标签进行设置 //新建Border对象 false 参数表示是否可见、颜色、宽度 Border border = new Border(false, Color.Black, 10); //设置曲线标签的边框 this.zedGraphControl1.GraphPane.Legend.Border = border; 注: 这里是将其边框进行设计,还可以根据自己需要对其字体和位置进行设置。 设置位置 设置字体 来源: https://www.cnblogs.com/badaoliumangqizhi/p/11427938.html

Winform中实现ZedGraph曲线图的图像复制到剪切板、打印预览、获取图片并保存、另存为的功能

落爺英雄遲暮 提交于 2019-11-28 19:28:08
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 https://www.cnblogs.com/badaoliumangqizhi/p/11422087.html 在上面实现ZedGraph曲线图以及一些属性的设置之后,对其曲线图的一些操作事件进行编写。 下面一些事件打开实现是基于以上属性设置成功之后。 效果 控件下载 https://download.csdn.net/download/badao_liumang_qizhi/11578445 英文手册下载 https://download.csdn.net/download/badao_liumang_qizhi/11578491 源码下载 https://download.csdn.net/download/badao_liumang_qizhi/11629179 实现 图像复制到剪贴板实现 拖拽一个按钮,双击进入其点击事件。 private void button2_Click(object sender, EventArgs e) { //ture代表复制成功提示 this.zedGraphControl1.Copy(true); } 效果

Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性

有些话、适合烂在心里 提交于 2019-11-28 19:20:08
场景 C#窗体应用中使用ZedGraph曲线插件绘制图表: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/99716066 在上面已经实现基本的曲线图之后,效果如下: 当然这不是我们的效果,还要对其属性进行设置。 但是毕竟其属性和方法说明都是英文,所以整理了一些常用属性和方法。 调整之后的效果 控件下载 https://download.csdn.net/download/badao_liumang_qizhi/11578445 英文手册下载 https://download.csdn.net/download/badao_liumang_qizhi/11578491 实现 曲线整体属性设置 //是否允许横向缩放 this.zedGraphControl1.IsEnableHZoom = true; //是否允许纵向缩放 this.zedGraphControl1.IsEnableVZoom = true; //是否允许缩放 this.zedGraphControl1.IsEnableZoom = true; //是否显示右键菜单 this.zedGraphControl1.IsShowContextMenu = true; //复制图像时是否显示提示信息 this.zedGraphControl1

How to miss points in a ZedGraph line graph in C#

岁酱吖の 提交于 2019-11-28 09:58:42
问题 I have bit of code that draws nice line charts in ZedGraph. I can not change the code entirely, but I would like to have some of the lines not have a y value for each point on the x-axis. I can do this in Excel, but I don't know how to in ZedGraph. I create graph with .AddCurve . How do I do this? 回答1: NaN values should do the trick. If you want to break the line for example between x=1 and x=2, just add a point (1.5, double.NaN). Zedgraph should make the gap by itself. 来源: https:/