calculate_nice_axis_limits Subroutine

public subroutine calculate_nice_axis_limits(data_min, data_max, target_num_ticks, nice_min, nice_max)

Calculate nice axis limits that encompass the data like matplotlib The axis limits are set to nice round numbers based on tick locations

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