如何在单个窗格中添加不同的图形 [英] How to add different graph in single pane
本文介绍了如何在单个窗格中添加不同的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在使用Zgraph,我想在其中在不更改轴的情况下在一个窗格中创建不同的图
例如,X和Y轴将相同,但是如果我添加折线图,它也会出现,如果我添加烛台图,它也应该出现在折线图下方,以便仅y轴会根据数据而变化.
我正在使用代码
Hi All,
I am using Zgraph in which i want to create different graph in a single pane without changing the axis
for eg the X and Y axis ll be same but if i add line chart it appear also if i add candle stick chart it should appear below line chart so that only the y axis will be change according to data .
I am using the code
GraphPane mypane = zc.GraphPane;
LineItem MyCurve = mypane.AddCurve("Sine Wave", pt1, Color.Red,SymbolType.Triangle);
BarItem Mybar = mypane.AddBar("Bar", pt1, Color.Plum);
但是这样就重叠了.
如果有的话,请帮助我并将代码发送给我.
在此先感谢
Nand
But in this way it is overlapping.
please help me and send me the code if any one have.
Thanks in Advance
Nand
推荐答案
查看有关ZedGraph的代码项目文章: .NET的灵活图表库 [ ^ ]
它说您可以使用MasterPane
添加几个窗格.
Check out the code project article about ZedGraph : A flexible charting library for .NET[^]
It says you can useMasterPane
to add several panes.
这篇关于如何在单个窗格中添加不同的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文