/// <summary> /// Force a graph to use a given set of axes. /// </summary> /// <param name="graphView">Graph view to be modified.</param> /// <param name="axes">Axes to use.</param> private void FormatAxes(GraphView graphView, Axis[] axes) { foreach (Axis axis in axes) { graphView.FormatAxis(axis.Position, graphView.AxisTitle(axis.Position), axis.Inverted, axis.Minimum ?? double.NaN, axis.Maximum ?? double.NaN, axis.Interval ?? double.NaN, axis.CrossesAtZero); } }
/// <summary> /// Force a graph to use a given set of axes. /// </summary> /// <param name="graphView">Graph view to be modified.</param> /// <param name="axes">Axes to use.</param> private void FormatAxes(GraphView graphView, Axis[] axes) { foreach (Axis axis in axes) { graphView.FormatAxis(axis.Type, graphView.AxisTitle(axis.Type), axis.Inverted, axis.Minimum, axis.Maximum, axis.Interval, axis.CrossesAtZero); } }