使用Zedgraph按问题按值填充曲线下的区域 [英] Fill the area under a curve with gradient-by-value using Zedgraph, Question

查看:340
本文介绍了使用Zedgraph按问题按值填充曲线下的区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



无论如何,是否可以使用Zedgraph使用按值的梯度来填充曲线下的区域?我知道如何使用符号,条形图和线段.但是我无法通过曲线下方的内容来做到这一点.我想要类似的东西:暗红色(曲线下方区域的颜色)为0,红色直到"a"值.高于"a"值的浅绿色.在"b"值及以上时为深绿色.类似于带有符号的按值渐变Zedgraph演示,但现在具有曲线下方的区域.像热图一样,红色=某些值时会变热,然后红色->黄色->浅蓝色->蓝色=较冷.

我尝试了GradientZ填充类型,但它似乎仅适用于符号和条形.不适用于曲线下的区域

谢谢
Anh

Hi,

Is there anyway to fill the area under a curve with gradient-by-value using Zedgraph? I know how to that with the symbol, bar, and segment line. But I could not do it with the are under the curve. I would like to have something like: Dark red (the color of the area under the curve) at 0, red up until "a" value. Light Green above "a" values. Dark green at and above "b" values. Something like the Gradient-by-value Zedgraph demo with symbol but now with the area under the curve. Something like the thermal chart, red=hot at certain values then lighter red->yellow->light blue->blue=cool.

I have tried the GradientZ fill type but it seems works only for symbol and bar. Not for the area under the curve

Thank you,
Anh

推荐答案

您是否在Zedgraph论坛上进行了检查?他们可能会回答您的问题.
Did you check on the Zedgraph forums? They might have an answer to your question.


Zedgraph论坛?您是指Zedgraph Wiki中的Zedgraph讨论吗???如果是这样,那么这个问题将没有答案.如果没有,请告诉我Zedgraph论坛在哪里?我做了谷歌搜索,它只显示了Zedgraph Wiki中的讨论话题.

谢谢
Zedgraph forum? Do you mean the Zedgraph Discussion in Zedgraph wiki??? If so, there is not an answer for this question. If not, please let me know where is the Zedgraph forum? I did google search and it showed only the Discussion talk in Zedgraph Wiki.

Thank you


无论如何,我现在知道该怎么做.这是我所做的:
1.通过添加点(使用插值法)使曲线平滑
2.将曲线分为2种曲线类型:在"a"曲线下方和"a"曲线上方.
3.填充每个曲线的区域.
问候
I know how to do it now, anyway. Here what I have done:
1. Smooth the curve with many added points (using interpolate)
2. Break the curve to 2 Curve type: under "a" and above "a" curves.
3. Fill the area each curves.
Regards,


这篇关于使用Zedgraph按问题按值填充曲线下的区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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