-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Description
XAxisIndex and YAxisIndex are confusing! So are XAxis2 and YAxis2
Implement non-breaking features which allows axes to be referenced as objects instead of integer indexes
Referencing axes:
ScottPlot.Plot plt = new();
plt.TopAxis.Label("top");
plt.BottomAxis.Label("bottom");
plt.RightAxis.Label("right");
plt.LeftAxis.Label("left");Pairing axes with plottables:
ScottPlot.Plot plt = new();
var scatter1 = plt.AddScatter(/* */);
scatter1.YAxisIndex = plt.LeftAxis.YAxisIndex;
var scatter2 = plt.AddScatter(/* */);
scatter2.YAxisIndex = plt.RightAxis.YAxisIndex;
var secondLeftAxis = plt.AddYAxis(Edge.Left);
var scatter3 = plt.AddScatter(/* */);
scatter3.YAxisIndex = secondLeftAxis.YAxisIndex;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels