Created
May 9, 2017 10:18
-
-
Save ch-hristov/bcf417aa890cf11dc827178ed1745e3e to your computer and use it in GitHub Desktop.
Revisions
-
ch-hristov created this gist
May 9, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ var plot = new PlotModel(); plot.Axes.Add(new OxyPlot.Axes.CategoryAxis()); plot.Axes.Add(new OxyPlot.Axes.CategoryAxis()); OxyPlot.Series.ScatterSeries s; plot.Series.Add(s = new OxyPlot.Series.ScatterSeries()); s.Points.Add(new ScatterPoint() { X = 1, Y = 2 }); s.Points.Add(new ScatterPoint() { X = 3, Y = 3 }); PngExporter png = new PngExporter(); using (var f = File.OpenWrite("file.png")) { png.Export(plot, f); }