/// <summary> /// Set size of the primary axes to zero so the data area covers the whole figure /// </summary> public void Frameless() { var primaryAxes = new Renderable.Axis[] { XAxis, XAxis2, YAxis, YAxis2 }; foreach (var axis in primaryAxes) { axis.Hide(); } }
/// <summary> /// Configure color and visibility of the frame that outlines the data area (lines along the edges of the primary axes) /// </summary> public void Frame(bool?visible = null, Color?color = null, bool?left = null, bool?right = null, bool?bottom = null, bool?top = null) { var primaryAxes = new Renderable.Axis[] { XAxis, XAxis2, YAxis, YAxis2 }; foreach (var axis in primaryAxes) { axis.Line(visible, color); } YAxis.Line(visible: left); YAxis2.Line(visible: right); XAxis.Line(visible: bottom); XAxis2.Line(visible: top); }
/// <summary> /// Control color and visibility of the plot area outlines (frame) /// </summary> public void Frame(bool?drawFrame = true, System.Drawing.Color?frameColor = null, bool?left = true, bool?right = true, bool?bottom = true, bool?top = true) { var primaryAxes = new Renderable.Axis[] { XAxis, XAxis2, YAxis, YAxis2 }; foreach (var axis in primaryAxes) { axis.Line.IsVisible = drawFrame ?? axis.Line.IsVisible; axis.Line.Color = frameColor ?? axis.Line.Color; } YAxis.Line.IsVisible = left ?? YAxis.Line.IsVisible; YAxis2.Line.IsVisible = right ?? YAxis2.Line.IsVisible; XAxis.Line.IsVisible = bottom ?? XAxis.Line.IsVisible; XAxis2.Line.IsVisible = top ?? XAxis2.Line.IsVisible; }
/// <summary> /// Remove the a specific axis from the plot /// </summary> public void RemoveAxis(Renderable.Axis axis) { settings.Axes.Remove(axis); }