Skip to content

Remove extra digits from tick labels. #39

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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