convert_to_x_coordinate($x)
convert_to_y_coordinate($y)
copy_horizontal_scale($other)
copy_vertical_scale($other)
A scale converts local data (numbers) into coordinate ready to be displayed.
Can use linear scale or logarithmic ones.
linear : X = a * x + b logarithmic : X = ln(x - b + 1) * a
Parameterize the scale to elaborate a mapping of [$y1,$y2] => [$ty1,$ty2] on the vertical axis.
Parameterize the scale to elaborate a mapping of [$x1,$x2] => [$tx1,$tx2] on the horizontal axis.
Parameterize the scale to elaborate a logarithmic mapping of [$y1,$y2] => [$ty1,$ty2] on the vertical axis.
Parameterize the scale to elaborate a logarithmic mapping of [$x1,$x2] => [$tx1,$tx2] on the horizontal axis.
Returns the coordinate of the ($x, $y) point with the scale modification applied.
convert_to_x_coordinate($x)
Returns the X coordinate of the $X value with the scale modification applied.
convert_to_y_coordinate($y)
Returns the Y coordinate of the $y value with the scale modification applied.
Returns the value corresponding to the given coordinate.
copy_horizontal_scale($other)
copy_vertical_scale($other)
Copy the horizontal/vertical scale defined in the $other scale object.