Skip to content

Feature request : add an option for significant digits in format-ticks-linear #126

@Akilon27

Description

@Akilon27

Hi,

As discussed on Discord, I would like to have the integers formatted as such (1, 2, 3...) instead of (1.0, 2.0, 3.0...) when tick-distance:0.5 or 0.2...

That seems to be the standard here in France : for tick-distance:0.5, the ticks labels are 0,5 ; 1 ; 1,5 and 2 for example.

A simple formatter like #let int-formatter(ticks, ..args) = {ticks.map(x=> {$#x$})} seems to do the trick but you said an option in format-ticks-linear would be better.

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