Calculates loose axis ticks and labels using nice numbers
Calculates axis ticks and labels using nice numbers
PrettyTicks(min = -3, max = 3, ntick = 5)
min
: Minimum value on the axismax
: maximum value on the axis.ntick
: Approximated number of desired ticksCalculates axis ticks and labels using nice numbers. The resulting labels are known as loose labels.
A list with the following fields - ticks: Ticks for the axis
Heckbert, P. S. (1990). Nice numbers for graph labels. In Graphics Gems (pp. 61-63). Academic Press Professional, Inc..
Jose Luis Vicente Villardon
NiceNumber
PrettyTicks(-4, 4, 5)
Useful links