fortplot
Examples
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
Programs
transform_x_coordinate
Function
10 statements
Source File
fortplot_scales.f90
fortplot_scales
transform_x_coordinate
Contents
public function transform_x_coordinate(x, x_min, x_max, width) result(x_screen)
Transform data x-coordinate to screen coordinate
Arguments
Type
Intent
Optional
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)