Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
24 lines (17 loc) · 686 Bytes

File metadata and controls

24 lines (17 loc) · 686 Bytes
Copy raw file
Download raw file
Edit and raw actions
Title Console Application Quickstart
description How to create a plot and save it as an image from a C# console application
date 2023-12-13

Console Application Quickstart

Step 1: Install the ScottPlot NuGet package. Linux & MacOS users may need to install additional packages.

Step 2: Write some code to plot data and save it as an image file.

double[] dataX = { 1, 2, 3, 4, 5 };
double[] dataY = { 1, 4, 9, 16, 25 };

ScottPlot.Plot myPlot = new();
myPlot.Add.Scatter(dataX, dataY);

myPlot.SavePng("quickstart.png", 400, 300);

Morty Proxy This is a proxified and sanitized view of the page, visit original site.