Added ticks locators (inspired by matplotlib). Tick locators are objects that manage how ticks are placed on a chart.
RSTickLocator is the abstract super class, RSAutoLocator is equivalent to "shouldUseNiceLabel = true", RSLinearLocator to "shouldUseNiceLabel = false". A lot of other locators can be implemented, like LogLocator, FixedLocator, etc. It allows more options to customize ticks. Tests are included.
Removed shouldUseNiceLabel and associated methods as a result.
Also removed unused RSTopHorizontalTick class, since there is already RSHorizontalTopTick.
Added ticks locators (inspired by matplotlib). Tick locators are objects that manage how ticks are placed on a chart.
RSTickLocator
is the abstract super class,RSAutoLocator
is equivalent to "shouldUseNiceLabel = true",RSLinearLocator
to "shouldUseNiceLabel = false". A lot of other locators can be implemented, like LogLocator, FixedLocator, etc. It allows more options to customize ticks. Tests are included. RemovedshouldUseNiceLabel
and associated methods as a result. Also removed unusedRSTopHorizontalTick
class, since there is alreadyRSHorizontalTopTick
.