-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
BUGunexpected behaviorunexpected behavior
Description
When using converting to pixel with GetPixelY() then back to coordinate with GetCoordinateY() does not result in the same number
The error is here:
ScottPlot/src/ScottPlot/PlotDimensions.cs
Line 43 in d8bce90
| public double GetCoordinateY(float pixel) => DataHeight - ((pixel - YMin) * PxPerUnitY); |
@BambOoxX pointed-out in #1616 this should be:
public double GetCoordinateY(float pixel) => YMax - (pixel - DataOffsetY) / PxPerUnitY;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BUGunexpected behaviorunexpected behavior