Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ch-hristov/bcf417aa890cf11dc827178ed1745e3e to your computer and use it in GitHub Desktop.

Select an option

Save ch-hristov/bcf417aa890cf11dc827178ed1745e3e to your computer and use it in GitHub Desktop.

Revisions

  1. ch-hristov created this gist May 9, 2017.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original 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);
    }