transform_x_coordinate Function

public function transform_x_coordinate(x, x_min, x_max, width) result(x_screen)

Transform data x-coordinate to screen coordinate

@param x: Data x-coordinate @param x_min: Minimum x value in data range @param x_max: Maximum x value in data range @param width: Screen width in pixels @return x_screen: Screen x-coordinate

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x
real(kind=wp), intent(in) :: x_min
real(kind=wp), intent(in) :: x_max
integer, intent(in) :: width

Return Value real(kind=wp)