Tick value formatting functions with multiple strategies
Provides: - Range-aware tick formatting - Smart formatting with character limits - Logarithmic tick value formatting - String utility functions for tick labels
Format tick value based on data range like matplotlib
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | value | |||
| real(kind=wp), | intent(in) | :: | range | 
Smart tick value formatting with automatic exponential notation for long labels Limits output to max_chars and uses exponential notation when needed
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | value | |||
| integer, | intent(in) | :: | max_chars | 
Format logarithmic tick values using scientific notation like matplotlib
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | value | 
Build a mathtext-friendly power-of-ten label: 10^{n} or -10^{n}
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | value | 
Remove trailing zeros from decimal representation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | str | 
Ensure numbers like .5 become 0.5 for readability
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(inout) | :: | str |