transform_y_coordinate Function

public function transform_y_coordinate(y, y_min, y_max, height, invert) result(y_screen)

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

Arguments

Type IntentOptional 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

Return Value real(kind=wp)