Skip to content

Uneven tick spacing #14

@davidfokkema

Description

@davidfokkema

Because of rounding, the tick spacing can be uneven. Let's say you try to fit a range of 0, 10, 20, 30, 40, 50 in a height of 8 characters, some ticks will have a spacing of two characters, and some will have a spacing of a single character. See here:

Image

I can implement a method which you can call to adjust the axis to include a bit more space so that the tick spacing is a bit reduced in some places but even over the whole range. The tick spacing should be reduce to an integer number. BUT: what to do when zooming? In that case the tick spacing will quickly become uneven again. Should we then set a flag and call the 'rounding down' method for every zoom action?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions