ObjectProfile / Roassal3

The Roassal Visualization Engine
MIT License
96 stars 52 forks source link

Tick locators #555

Closed DurieuxPol closed 1 year ago

DurieuxPol commented 1 year ago

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.