水平线上的阈值线 [英] threshhold line in the horizontal line

查看:167
本文介绍了水平线上的阈值线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能很简单,但我无法弄清楚。我在zed图中有一个线性图。现在我想为一个阈值Y值添加一条直线水平线,例如红色,这样它就会在图表中显示实际数据。我已经知道每个计数器的阈值。



This may be simple, but I'm unable to figure it out. I have a linear graph in zed graph. Now I want to add a straight horizontal line for a threshold Y value in, say, Red so that it shows in the graph along with the actual data. I already know the threshold value for each of my counters.

double threshHoldY = 2;
LineObj threshHoldLine = new LineObj(
    Color.Red,
    graphPane.XAxis.Scale.Min,
    threshHoldY,
    graphPane.XAxis.Scale.Max,
    threshHoldY);
graphPane.GraphObjList.Add(threshHoldLine);





这是我正在尝试的代码,但只绘制了x轴的起点,我想要它用于整个x-axixs。



this is the code i am trying but only draws the line in the beginning of the x- axis, where as i want it for the entire x-axixs.

推荐答案

这篇关于水平线上的阈值线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆