find_nice_tick_locations Subroutine

public subroutine find_nice_tick_locations(data_min, data_max, target_num_ticks, nice_min, nice_max, nice_step, tick_locations, actual_num_ticks)

Find nice tick locations following matplotlib's MaxNLocator algorithm exactly

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
integer, intent(in) :: target_num_ticks
real(kind=wp), intent(out) :: nice_min
real(kind=wp), intent(out) :: nice_max
real(kind=wp), intent(out) :: nice_step
real(kind=wp), intent(out) :: tick_locations(:)
integer, intent(out) :: actual_num_ticks