zedgraph

Winform中实现ZedGraph新增自定义Y轴上下限、颜色、标题功能

匿名 (未验证) 提交于 2019-12-02 22:09:29
场景 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 在上面实现显示多条自定义Y轴的效果上,改进实现自定义新增Y轴功能。 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 示例代码下载 https://download.csdn.net/download/badao_liumang_qizhi/11653210 实现 主窗体添加按钮,点击之后弹出Y轴设置界面。 private void button12_Click(object sender, EventArgs e) { addY = new AddY(); addY.Show(); } 其中addY是对应要弹窗显示的窗体对象,其设计如下 此窗体有两个EditText,用来存储Y轴的上下限,然后使用RadioGroup用来设置标题的选择,然后使用 ColorEditPicker进行颜色的选择,以上的控件都是使用的DevExpress的控件。 在点击新增按钮时将控件上的所有属性赋值给声明的YAxis对象。 private void button1_Click(object sender, EventArgs e) { YAxis y = new YAxis();

史上最全Winform中使用ZedGraph教程与资源汇总整理(附资源下载)

血红的双手。 提交于 2019-12-02 14:23:45
场景 C#窗体应用中使用ZedGraph曲线插件绘制图表: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/99716066 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 Winform中实现ZedGraph曲线图缩放后复原功能: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100114576 Winform中实现ZedGraph中曲线右键显示为中文: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100115292 Winform中实现ZedGraph曲线图的图像复制到剪切板、打印预览、获取图片并保存、另存为的功能: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100115425 WInform中实现设置ZedGraph中曲线的X轴与Y轴的上限与下限: https://blog.csdn.net/BADAO_LIUMANG_QIZHI

ZedGraph smoothly move Y2Axis with chart line

妖精的绣舞 提交于 2019-12-02 04:27:07
问题 In following my question "ZedGraph custom graph" I have chart with every second inserting of datas, now I have other questions: How to smoothly move down Y2Axis (DateTime type) with a chart line and show in chart always only last 30 minutes? How to format Y2Axis labels "HH:mm" to get 10:05, 10:10, 10:15, ..., 10:30? Thanks for help! UPD1 : Thanks kmp! I try your code - its good, but with issue: when I started I see this: When after few minutes I see this picture: I have a "compression" of

ZedGraph smoothly move Y2Axis with chart line

不羁的心 提交于 2019-12-02 01:23:06
In following my question "ZedGraph custom graph" I have chart with every second inserting of datas, now I have other questions: How to smoothly move down Y2Axis (DateTime type) with a chart line and show in chart always only last 30 minutes? How to format Y2Axis labels "HH:mm" to get 10:05, 10:10, 10:15, ..., 10:30? Thanks for help! UPD1 : Thanks kmp! I try your code - its good, but with issue: when I started I see this: When after few minutes I see this picture: I have a "compression" of chart area, but I want statically show always last 30 minute and slowly move down old datas, without of

ZedGraph (.NET) - Having axis labels for actual values only

梦想与她 提交于 2019-12-01 13:41:33
Using the ZedGraph control, say I am plotting data that has Y values of 13, 34, and 55. How do I set up my Y Axis so that the only text labels shown (and I guess that grid lines would be synchronised) are those for 13, 34 and 55? I don't want regularly spaced labels in the range of my data (say 0, 25, 50, 75, ..). Just labels at the actual values. I don't think it is possible directly, out of the box. Here's some poor half-solution created using custom TextObj labels. First, you need to disable the old axis scale: zg1.MasterPane[0].YAxis.Scale.IsVisible = false; zg1.MasterPane[0].YAxis

ZedGraph (.NET) - Having axis labels for actual values only

大城市里の小女人 提交于 2019-12-01 12:48:16
问题 Using the ZedGraph control, say I am plotting data that has Y values of 13, 34, and 55. How do I set up my Y Axis so that the only text labels shown (and I guess that grid lines would be synchronised) are those for 13, 34 and 55? I don't want regularly spaced labels in the range of my data (say 0, 25, 50, 75, ..). Just labels at the actual values. 回答1: I don't think it is possible directly, out of the box. Here's some poor half-solution created using custom TextObj labels. First, you need to

Changing axis type in ZedGraph

China☆狼群 提交于 2019-12-01 12:38:55
I have a data of time of consecutive heart beats (in milliseconds) and I'm trying to make a dynamic chart of them. So on XAxis I have XDate variable increased by .AddMilliseconds(heart_beat_time) and on YAxis heart_beat_time . When I use AxisType.Date it's pretty good. I can change Min , Max and other related values, but when I change to AxisType.DateAsOrdinal I can not see points nor labels. During some debugging it has showed up that Zedgraph does paint the points and labels, but there are very large gaps between consecutive ones. How can I control DateAsOrdinal Min, Max, MajorStep and so on

ZedGraph labels

徘徊边缘 提交于 2019-12-01 11:13:36
In ZedGraph, how do I show text labels for each point and in the XAxis all together? If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i < myCurve.Points.Count; i++) { PointPair pt = myCurve.Points[i]; // Create a text label from the Y data value TextObj text = new TextObj( pt.Y.ToString("f0"), pt.X, pt.Y + 0.1, CoordType.AxisXYScale, AlignH.Left, AlignV.Center); text.ZOrder = ZOrder.A_InFront; text.FontSpec.Angle = 0; myPane.GraphObjList.Add(text); } I get labels on the curve, like this

ZedGraph labels

为君一笑 提交于 2019-12-01 09:14:27
问题 In ZedGraph, how do I show text labels for each point and in the XAxis all together? If I do myPane.XAxis.Type = AxisType.Text; myPane.XAxis.Scale.TextLabels = array_of_string; I get labels on the XAxis like this And if I do for (int i = 0; i < myCurve.Points.Count; i++) { PointPair pt = myCurve.Points[i]; // Create a text label from the Y data value TextObj text = new TextObj( pt.Y.ToString("f0"), pt.X, pt.Y + 0.1, CoordType.AxisXYScale, AlignH.Left, AlignV.Center); text.ZOrder = ZOrder.A

Winform中设置多条Y轴时新增的Y轴刻度不显示问题解决

ⅰ亾dé卋堺 提交于 2019-12-01 04:36:38
场景 Winform中实现ZedGraph的多条Y轴(附源码下载): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100132245 在上面实现多条Y轴后,新增的Y轴没有刻度,如下: 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 ZedGraph的YAxis有个属性AxisType,表示坐标轴的类型。 其默认是Linear,坐标轴类型。 但是在代码中却将其设置为了text类型 yAxis.Type = AxisType.Text; 将其修改为Linear或者注释掉即可。 来源: https://www.cnblogs.com/badaoliumangqizhi/p/11654447.html