-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Description
It's not obvious to new users that the axis index arguments are only required for plots with multiple X and Y axes (#1366)
ScottPlot/src/ScottPlot/Plot/Plot.Axis.cs
Lines 426 to 433 in e2ea81c
| /// <summary> | |
| /// Automatically adjust axis limits to fit the data | |
| /// </summary> | |
| /// <param name="horizontalMargin">amount of space to the left and right of the data (as a fraction of its width)</param> | |
| /// <param name="verticalMargin">amount of space above and below the data (as a fraction of its height)</param> | |
| /// <param name="xAxisIndex">only modify the given axis (otherwise all axes will be adjusted)</param> | |
| /// <param name="yAxisIndex">only modify the given axis (otherwise all axes will be adjusted)</param> | |
| public void AxisAuto(double? horizontalMargin = null, double? verticalMargin = null, int? xAxisIndex = null, int? yAxisIndex = null) |
AxisAutoX and AxisAutoY also have poorly written XML docs
ScottPlot/src/ScottPlot/Plot/Plot.Axis.cs
Lines 455 to 459 in e2ea81c
| /// <summary> | |
| /// Automatically adjust axis limits to fit the data | |
| /// </summary> | |
| /// <param name="margin">amount of space to the left and right of the data (as a fraction of its width)</param> | |
| public void AxisAutoX(double margin = .05) |
ScottPlot/src/ScottPlot/Plot/Plot.Axis.cs
Lines 474 to 478 in e2ea81c
| /// <summary> | |
| /// Automatically adjust axis limits to fit the data (with a little extra margin) | |
| /// </summary> | |
| /// <param name="margin">amount of space above and below the data (as a fraction of its height)</param> | |
| public void AxisAutoY(double margin = .1) |
Reactions are currently unavailable