-
-
Save VisualMelon/a3627d7ffc22f06e2bc1009841d3279c to your computer and use it in GitHub Desktop.
OxyPlot Minimal PNG Export
This file contains 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
using System; | |
using OxyPlot; | |
using OxyPlot.Series; | |
using OxyPlot.WindowsForms; | |
namespace OxyConsoleTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
PlotModel plot = new PlotModel() { Title = "Test" }; | |
plot.Series.Add(new FunctionSeries(Math.Sin, 0, 10, 0.1, "Sin")); | |
PngExporter exporter = new PngExporter(); | |
exporter.ExportToFile(plot, "test.png"); | |
System.Diagnostics.Process.Start("test.png"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment