在WindowsForms中使用OxyPlot

时间:2015-06-18 19:25:14

标签: c# winforms oxyplot

到目前为止,根据我在List<WebElement> links = driver.findElements(By.partialLinkText("sfoobar")); if(links.isEmpty()) { throw new RuntimeException("Cannot find any links."); } else { for(WebElement link:links) { if(StringUtils.substringBefore(link.getText(),":").equals("sfoobar")) { link.click(); break; } } } 文档中看到的内容,并没有多少内容。如何使用OxyPlot获取x-y点并绘制图形?

以下是我尝试取两点并绘制图表的方法:

OxyPlot

我需要更改/添加到var dataModel = new PlotModel { Title = "data plot" }; foreach (var pt in dataProfile) { XYData.Text = String.Format("X:{0} Y:{1}", pt.X,pt.Y); dataModel.Series.Add(pt.X, pt.Y); //(obviously wrong here) this.plot1.Model = dataModel; } ,以便添加点数?另外,我如何随着时间的推移绘制积分? (x-y,绘制为时间t经过)

有没有人知道一个好的OxyPlot教程网站(对于WinForms),因为我找不到一个(除了OxyPlot文档,最好是非常广泛的。)

1 个答案:

答案 0 :(得分:2)

我知道您已经提到过foo,但无论使用哪种UI框架,您都必须能够轻松查看所有示例和所有源代码。另外,请查看所有示例:http://resources.oxyplot.org/examplebrowser/

无论如何,你想要的是WinForms情节。然后,您可以添加点数。一个例子:

ScattierSeries

我给你的示例浏览器链接下有很多例子。上面的代码是从那里剪断的。因此,研究所有可用的选项。 OxyPlot非常灵活,我能够在最近的项目中轻松扩展它。

相关问题