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.
| Type | Intent | Optional | 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 |