Skip to content

Instantly share code, notes, and snippets.

@a-h
Created January 16, 2015 09:54
Show Gist options
  • Save a-h/d067334b70406cda5799 to your computer and use it in GitHub Desktop.
Save a-h/d067334b70406cda5799 to your computer and use it in GitHub Desktop.
OxyPlotExtensions Example Usag
void Main()
{
var model = new PlotModel { Title = "Test" };
var xseries = new double[] { 1, 2, 3 };
var yseries1 = new double[] { 1, 2, 3 };
var yseries2 = new double[] { 0.5, 1, 1.5 };
model.AddScatterSeries(xseries, yseries1, OxyColors.Red);
model.AddHighlightedPoint(2.5, 2.5, OxyColors.Blue);
model.AddLineSeries(xseries, yseries2);
ShowChart(model);
}
public static void ShowChart(PlotModel model)
{
var chart = new PlotView();
chart.Model = model;
chart.Dump();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment