Created
May 9, 2017 10:18
-
-
Save ch-hristov/bcf417aa890cf11dc827178ed1745e3e to your computer and use it in GitHub Desktop.
PlotModel
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 characters
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment