zedgraph

ZedGraph vertical lines with LineObj issue

荒凉一梦 提交于 2019-12-05 09:10:49
I have a ZedGraphControl with a few curves in it and I want to add vertical lines at some fixed x-positions. The lines should of course only be inside the actual graph area. I tried following LineObj line = new LineObj(Color.Black, xPos, myPane.YAxis.Scale.Min, xPos, myPane.YAxis.Scale.Max); line.Line.Style = System.Drawing.Drawing2D.DashStyle.Dash; line.Line.Width = 1f; myPane.GraphObjList.Add(line); and this works fine until the user zooms the graph, the vertical lines will then stretch out of the actual graph area (see pic link below, also notice that it is not dashed inside the graph, odd)

ZedGraph custom graph

余生长醉 提交于 2019-12-05 05:56:32
I want to make wtih ZedGraph following dynamically chart: How to make ZedGraph axes reverse and and time axis? Thanks UPD 1 : I have to try with following code: GraphPane myPane = zg1.GraphPane; myPane.YAxis.Type = AxisType.Date; myPane.YAxis.Scale.MajorUnit = DateUnit.Minute; myPane.YAxis.Scale.MinorUnit = DateUnit.Second; myPane.XAxis.IsVisible = false; myPane.X2Axis.IsVisible = true; myPane.X2Axis.MajorGrid.IsVisible = true; myPane.X2Axis.Scale.Min = 0; myPane.X2Axis.Scale.Max = 600; myPane.YAxis.Scale.Format = "HH:mm:ss"; PointPairList list = new PointPairList(); PointPairList list2 = new

Why is my C# program faster in a profiler?

谁说我不能喝 提交于 2019-12-04 23:34:05
I have a relatively large system (~25000 lines so far) for monitoring radio-related devices. It shows graphs and such using latest version of ZedGraph. The program is coded using C# on VS2010 with Win7. The problem is: when I run the program from within VS, it runs slow when I run the program from the built EXE, it runs slow when I run the program though Performance Wizard / CPU Profiler, it runs Blazing Fast. when I run the program from the built EXE, and then start VS and Attach a profiler to ANY OTHER PROCESS, my program speeds up! I want the program to always run that fast! Every project

Winform中在ZedGraph中最多可以添加多少条曲线

你说的曾经没有我的故事 提交于 2019-12-04 08:05:05
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 在对ZedGraph进行曲线添加时,如果需要添加大量曲线,那么最多可以添加多少条曲线。 在进行测试可以添加多少条曲线之前首先需要将ZedGraph的图例关掉使其不显示。不然在134条时就会显示如下效果。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 首先关掉图例显示 myPane.Legend.IsVisible = false; 然后编写循环生成曲线的代码 // 造一些数据,PointPairList里有数据对x,y的数组 Random y = new Random(); for (int i = 1; i < 201;i++ ) { PointPairList list1 = new PointPairList(); for (int j = 0; j < 50; j++) { double x = j; double y1 = y.NextDouble() * 1000; list1.Add(x, y1); //添加一组数据 }

Generating and Saving ZedGraph plots without showing on forms

杀马特。学长 韩版系。学妹 提交于 2019-12-04 03:23:55
Is it possible to plot data on to a ZedGraph graph and save it as a file without showing / generating a graph that is visible to the user? I'm looking to process a lot of datasets and generate a graph and saving it to a file for viewing outside of the application. If this can't be done, would it be possible show the graph on a hidden/minimized form, save the graph, close the window, and repeat for each graph? It is possible. You create and manipulate the ZedGraph control as usual, but just don't add it to the Form.Controls list, for example, in the InitializeComponent() method, comment out

How to select and enlarge a Masterpane in Zedgraph

徘徊边缘 提交于 2019-12-03 17:32:56
I have been searching this issue in the web and have gone trough the documentation,however was not successful in finding a solution. In my code I have created a MasterPane and utilize 13 GraphPanes,The problem is that if there are many graphs, the details become indistinguishable,hence I want to select(by clicking) a graph and enlarge it.Is there a specific function to realize this goal.If not,which steps are to be followed. Thank you in advance Even late,i hope it'll will help others. The idea is to use the MasterPan PaneList collection. I added a few buttons to the Window and do the control

.NET Open Source Contour Plotting

梦想的初衷 提交于 2019-12-03 15:14:30
问题 I am looking for an Open Source .NET Library (or wrapper to a library) that will create contour plots from a set of values along a grid/mesh. ZedGraph is the closest thing I could find (http://zedgraph.org/). It would also be great if it could export to EPS. 回答1: With D3 you can plot contour lines (isolines) for WPF. I am not sure about contour surfaces. WPF has great printing capabilities so I think that printing to EPS would not be a problem. Edit: recently found this one WinForms example

ZedGraph custom graph

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to make wtih ZedGraph following dynamically chart: How to make ZedGraph axes reverse and and time axis? Thanks UPD 1 : I have to try with following code: GraphPane myPane = zg1.GraphPane; myPane.YAxis.Type = AxisType.Date; myPane.YAxis.Scale.MajorUnit = DateUnit.Minute; myPane.YAxis.Scale.MinorUnit = DateUnit.Second; myPane.XAxis.IsVisible = false; myPane.X2Axis.IsVisible = true; myPane.X2Axis.MajorGrid.IsVisible = true; myPane.X2Axis.Scale.Min = 0; myPane.X2Axis.Scale.Max = 600; myPane.YAxis.Scale.Format = "HH:mm:ss"; PointPairList

.NET Open Source Contour Plotting

与世无争的帅哥 提交于 2019-12-03 04:58:14
I am looking for an Open Source .NET Library (or wrapper to a library) that will create contour plots from a set of values along a grid/mesh. ZedGraph is the closest thing I could find ( http://zedgraph.org/ ). It would also be great if it could export to EPS. With D3 you can plot contour lines (isolines) for WPF . I am not sure about contour surfaces. WPF has great printing capabilities so I think that printing to EPS would not be a problem. Edit: recently found this one WinForms example around a .dll which calculates isolines. The contour extraction routine ConRec worked very well (fast and

Winform中设置ZedGraph的颜色填充使用Fill

匿名 (未验证) 提交于 2019-12-02 22:09:29
场景 Winforn中设置ZedGraph曲线图的属性、坐标轴属性、刻度属性: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100112573 https://www.cnblogs.com/badaoliumangqizhi/p/11422087.html 在上面设置属性后,需要设置ZedGraph的面板panel的填充颜色。 实现 //声明pane对象 GraphPane myPane = new GraphPane(); //获取控件的Pane myPane = zgc.GraphPane; //填充色 myPane.Fill = new Fill(Color.Red, Color.Blue, 100.0f); 这里的参数有3个 前两个代表两种颜色,最后一个代表渐变填充的角度。 官方解释是这样的。 按照上面的代码所设置的效果为: 这里需要白色,不然默认的颜色会发暗。 //填充白色 myPane.Fill = new Fill(Color.White, Color.White, 45.0f); 效果 来源:博客园 作者: 霸道流氓 链接:https://www.cnblogs.com/badaoliumangqizhi/archive/2019/09/19/11550181.html