/// <summary> /// Pan by a certain distance (in axis units) /// </summary> public static void demo_008() { // create a new ScottPlot figure var fig = new ScottPlot.Figure(640, 480); // zoom and pan axes before drawing on them fig.Zoom(.8, .8); fig.PanUnits(4, 4); // draw a blue X fig.PlotLines(-10, 10, -10, 10, 5, Color.Blue); fig.PlotLines(-10, 10, 10, -10, 5, Color.Blue); // draw a red rectangle double[] Xs = { -10, 10, 10, -10, -10 }; double[] Ys = { -10, -10, 10, 10, -10 }; fig.PlotLines(Xs, Ys, 5, Color.Red); // save the file fig.Save("output/demo_008.png"); }