diff options
| author | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-16 23:21:19 +0300 |
|---|---|---|
| committer | Vasile Vilvoiu <vasi@vilvoiu.ro> | 2021-07-16 23:21:19 +0300 |
| commit | b2ce4c9758b717be4f416507fb31d88855406171 (patch) | |
| tree | 4fd2c96eb20d48b34c659abf67ed61ef73c1220f /src/renderer.hpp | |
| parent | b615bcb6dbfb9c55465eac363fb575d05e38b9c3 (diff) | |
Adaptive tick spacing, based on tick label width.
Fixes #18.
Diffstat (limited to 'src/renderer.hpp')
| -rw-r--r-- | src/renderer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/renderer.hpp b/src/renderer.hpp index 01ce397..f67596a 100644 --- a/src/renderer.hpp +++ b/src/renderer.hpp @@ -50,8 +50,8 @@ private: [[maybe_unused]] /* need for this method disappeared when fixing #9, might be useful in the future */ static std::list<AxisTick> GetLinearTicks(double v_min, double v_max, const std::string& v_unit, unsigned int num_ticks); - static std::list<AxisTick> GetNiceTicks(double v_min, double v_max, const std::string& v_unit, - unsigned int length_px, unsigned int est_tick_length_px); + std::list<AxisTick> GetNiceTicks(double v_min, double v_max, const std::string& v_unit, + unsigned int length_px, unsigned int min_tick_length_px, bool rotated); void RenderAxis(sf::RenderTexture& texture, const sf::Transform& t, bool lhs, Orientation orientation, double length, |
