Beispiel #1
0
        /// <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();
            }
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
        /// <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;
        }
Beispiel #4
0
 /// <summary>
 /// Remove the a specific axis from the plot
 /// </summary>
 public void RemoveAxis(Renderable.Axis axis)
 {
     settings.Axes.Remove(axis);
 }