compute_scale_ticks Subroutine

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

Compute tick positions for different scale types

             rendered axis this is the margin-expanded view edge).
             linear nice step. When absent, [data_min, data_max]
             is used (the historical behaviour). Passing the raw
             data range here keeps the step matplotlib-correct
             while ticks still cover the expanded view.

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
real(kind=wp), intent(in), optional :: step_min
real(kind=wp), intent(in), optional :: step_max