Home

Published

- 1 min read

c# matplotlib

img of c# matplotlib

The solution for this is noted below

c# matplotlib

Solution

   double[] dataX = new double[] { 1, 2, 3, 4, 5 };
double[] dataY = new double[] { 1, 4, 9, 16, 25 };
var plt = new ScottPlot.Plot(400, 300);
plt.AddScatter(dataX, dataY);
plt.SaveFig("sample.png");

Try other methods by searching on the site. That is if this doesn’t work