//////////////////////////////////////////////////////////////////////////////////// // functions public Settings(int pxWidth, int pxHeight, ref Data data) { axisX = new Axis(tickSpacingPx: 100); axisY = new Axis(tickSpacingPx: 50); mouse = new MouseTracker(ref axisX, ref axisY); this.data = data; Resize(pxWidth, pxHeight); }
/// <summary> /// Create a new ScottPlot with the given dimensions /// </summary> /// <param name="width">image width (pixels)</param> /// <param name="height">image height (pixels)</param> public Plot(int width = 600, int height = 800) { if (width <= 0 || height <= 0) { throw new ArgumentException("width and height must each be greater than 0"); } settings = new Settings(); mouseTracker = new MouseTracker(settings); Resize(width, height); TightenLayout(); }