private static void Main(string[] args) { ScottPlot2.ScottPlot SP = new ScottPlot2.ScottPlot(); ScottPlot2.Generate SPgen = new ScottPlot2.Generate(); SP.SetSize(1500, 400); SP.AddLine(SPgen.Sequence(5000), SPgen.Sine(5000)); SP.Render(); SP.SaveFig("test.jpg"); }
/// <summary> /// Resize ScottPlot to match the picturebox. Call this whenever the window is resized. /// </summary> public void GraphResize() { SP.SetSize(pictureBox1.Width, pictureBox1.Height); // update plot dimensions GraphDraw(); // draw the graph }