Transform data y-coordinate to screen coordinate
@param y: Data y-coordinate @param y_min: Minimum y value in data range @param y_max: Maximum y value in data range @param height: Screen height in pixels @param invert: Whether to invert y-axis (optional, default false) @return y_screen: Screen y-coordinate
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | y | |||
real(kind=wp), | intent(in) | :: | y_min | |||
real(kind=wp), | intent(in) | :: | y_max | |||
integer, | intent(in) | :: | height | |||
logical, | intent(in), | optional | :: | invert |