map_ticks_to_cells Subroutine

public pure subroutine map_ticks_to_cells(tick_values, num_ticks, v_min, v_max, cell_lo, cell_hi, cells, in_range)

Map axis tick data values to integer screen cells along one axis. in_range flags the ticks that fall inside [cell_lo, cell_hi] and are therefore drawable; callers decide which are labeled.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: tick_values(:)
integer, intent(in) :: num_ticks
real(kind=wp), intent(in) :: v_min
real(kind=wp), intent(in) :: v_max
integer, intent(in) :: cell_lo
integer, intent(in) :: cell_hi
integer, intent(out) :: cells(:)
logical, intent(out) :: in_range(:)