calculate_tick_labels Subroutine

public subroutine calculate_tick_labels(data_min, data_max, num_ticks, labels)

Calculate appropriate tick labels at nice locations like matplotlib Ensures all labels have consistent formatting and nice round numbers

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: data_min
real(kind=wp), intent(in) :: data_max
integer, intent(in) :: num_ticks
character(len=20), intent(out) :: labels(:)