Skip to content

Remove extra digits from tick labels. #39

@GregorySchwartz

Description

@GregorySchwartz

Right now, an integer could appear as "12.0" instead of the more pleasing "12". To fix this, I use:

xAxis . tickLabelFunction .= atMajorTicks (reverse . (\(x:xs) -> if x == '.' then xs else (x:xs)) . dropWhile (== '0') . reverse . show . (realToFrac :: Real n => n -> Float))

for both the x and y axis. It's dirty but a quick fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions