zedgraph

Changing axis type in ZedGraph

拥有回忆 提交于 2020-01-11 07:12:02
问题 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

How to add ZedGraph Control to Toolbox in wpf?

五迷三道 提交于 2020-01-05 07:25:10
问题 I added zedgraph.dll to my wpf application. There after i add that control to my toolbox. But it is not add to my toolbox in wpf application. But it add in WinForm Application. Anybody have solution for this problem? 回答1: xmlns:zed="clr-namespace:ZedGraph;assembly=ZedGraph" Add WindowsFormsIntegration to your references Add this for example..: <WindowsFormsHost Name="windowsFormsHost1" Margin="500,0,0,0"> <zed:ZedGraphControl x:Name="graph" Width="500" Height="320" /> </WindowsFormsHost> see

How to add ZedGraph Control to Toolbox in wpf?

▼魔方 西西 提交于 2020-01-05 07:25:09
问题 I added zedgraph.dll to my wpf application. There after i add that control to my toolbox. But it is not add to my toolbox in wpf application. But it add in WinForm Application. Anybody have solution for this problem? 回答1: xmlns:zed="clr-namespace:ZedGraph;assembly=ZedGraph" Add WindowsFormsIntegration to your references Add this for example..: <WindowsFormsHost Name="windowsFormsHost1" Margin="500,0,0,0"> <zed:ZedGraphControl x:Name="graph" Width="500" Height="320" /> </WindowsFormsHost> see

ZedGraph设置辅助线

北城余情 提交于 2020-01-04 16:26:44
ZedGraph设置辅助线 1.一般来说ZedGraph设置参考线可以用   ZedGraph对象.YAxis.MajorGrid.IsVisible = True '水平参考线   ZedGraph对象.XAxis.MajorGrid.IsVisible = True '垂直参考线 2.就是通过在ZedGraph上画个box来假装辅助线   BoxObj box = new BoxObj(x轴刻度, (y轴刻度), 宽, 高, color, color); box.Fill = new Fill(Color.White, color, 45.0F); box.ZOrder = ZOrder.F_BehindGrid;   ZedGraph对象.GraphPane.GraphObjList.Add(box);       来源: https://www.cnblogs.com/rwhaoo/p/9414697.html

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

拜拜、爱过 提交于 2020-01-04 16:24:28
场景 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

Zedgraph Magnitude issue in X2Axis in vb.net or c#

三世轮回 提交于 2020-01-04 13:44:25
问题 I am having hard time trying to do get the excel semi log plot with zedgraph: I currently have: To do this I have Dim pane As New GraphPane() 'reverse order pane.X2Axis.IsVisible = True pane.XAxis.IsVisible = False pane.YAxis.Scale.IsReverse = True pane.YAxis.Scale.IsPreventLabelOverlap = True ' log type pane.X2Axis.Type = AxisType.Log pane.AxisChange() ' the y axis scale pane.YAxis.Scale.Min = -20 pane.YAxis.Scale.Max = 120 'here I tried to manipulat x axis but had no success 'the data Dim

ZedGraph - How to make a horizontal line drag-able?

主宰稳场 提交于 2019-12-23 18:50:15
问题 I have some straight horizontal lines that I want the user be able to drag vertically. How would this be possible? I think the best parameter for line selection would be a fixed number of pixels near the line. So if mouse is +/- 2 pixels, I should change the mouse cursor and make the line drag-able.. I see the CurveItem class has properties IsSelectable and IsSelected. Will these have any function in solving this issue? I can’t really understand what they are for from reading the class

How to add real-time data in a dual-Y-axis ZedGraph graph using C#?

两盒软妹~` 提交于 2019-12-23 18:20:33
问题 For my project, I need to add and update real-time data to my dual y-axis graph. The Y and Y2 values share the same X value, and I created it already. Now I have a function that adds the new point pairs to the curve lists. Here is my problem: My Y and Y2 values are always added to the curve list of the first curve. How can I get the Y2 value added to the second curve list in my graph? Here is my function code: private void AddDataToGraph(ZedGraphControl zg1, XDate xValue, double yValue1,

ZedGraph Zooming And Resizing

独自空忆成欢 提交于 2019-12-23 17:26:12
问题 When I draw a graph, and zoom in and out of it, and redraw it, the location of the graph doesn't change. What I want to be able to do is have the view change to see all of the graphed data whenever the data is redrawn. This seems to be disabled if you zoom in or out before redrawing. Thanks! 回答1: Set the property .IsZoomOnMouseCenter to true for the control: zedGraphControl1.IsZoomOnMouseCenter = true; Also you may want to change the settings for horizontal and/or vertical zoom, in case you

Lock axis in ZedGraph

只谈情不闲聊 提交于 2019-12-23 13:32:04
问题 I've used ZedGraph to plot data from several sources with a single click. I need the Y-axes to always have the same max and min-values for each plot. I need this to be able to see changes between datasets as I flip through them. In my case, it would not make sense to plot data from several sources in one graph. I've tried to set axis properties like this: myPane.Y2Axis.Scale.Max = 40; myPane.Y2Axis.Scale.MaxAuto = false; myPane.Y2Axis.Scale.Min = -40; myPane.Y2Axis.Scale.MinAuto = false; I