compute_scale_ticks Subroutine

public subroutine compute_scale_ticks(scale_type, data_min, data_max, threshold, tick_positions, num_ticks)

Compute tick positions for different scale types

@param scale_type: Type of scale ('linear', 'log', 'symlog') @param data_min: Minimum data value @param data_max: Maximum data value @param threshold: Threshold for symlog (ignored for others) @param tick_positions: Output array of tick positions @param num_ticks: Number of ticks generated

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: scale_type
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
real(kind=wp), intent(in) :: threshold
real(kind=wp), intent(out) :: tick_positions(MAX_TICKS)
integer, intent(out) :: num_ticks