-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Description
Felix in the Discord (#1966) noted there is no way to remove additional axes once added
ScottPlot/src/ScottPlot5/ScottPlot5/AxisManager.cs
Lines 14 to 22 in 6380848
| /// <summary> | |
| /// Horizontal axes | |
| /// </summary> | |
| internal List<IXAxis> XAxes { get; } = new(); | |
| /// <summary> | |
| /// Vertical axes | |
| /// </summary> | |
| internal List<IYAxis> YAxes { get; } = new(); |
ScottPlot/src/ScottPlot5/ScottPlot5/AxisManager.cs
Lines 112 to 125 in 6380848
| /// <summary> | |
| /// Remove all axes that lie on the given edge. | |
| /// </summary> | |
| public void Remove(Edge edge) | |
| { | |
| foreach (IAxis axis in GetAxes(edge).ToArray()) | |
| { | |
| if (axis is IXAxis xAxis) | |
| Plot.Axes.XAxes.Remove(xAxis); | |
| if (axis is IYAxis yAxis) | |
| Plot.Axes.YAxes.Remove(yAxis); | |
| } | |
| } |
Reactions are currently unavailable