-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributors
Description
This works:
CoordinateRect rect = new(Axes.XAxis.Range, Axes.YAxis.Range);but it would be nice to be able to do this:
CoordinateRect rect = new(Axes); // where Axes is a class that implements IAxesThe new constructor can be added below this line
ScottPlot/src/ScottPlot4/ScottPlot/CoordinateRect.cs
Lines 20 to 27 in fb3b1c8
| public CoordinateRect(double x1, double x2, double y1, double y2) | |
| { | |
| XMin = Math.Min(x1, x2); | |
| XMax = Math.Max(x1, x2); | |
| YMin = Math.Min(y1, y2); | |
| YMax = Math.Max(y1, y2); | |
| ThrowIfNanOrInfinity(); | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributors