plots icon indicating copy to clipboard operation
plots copied to clipboard

Remove extra digits from tick labels.

Open GregorySchwartz opened this issue 8 years ago • 0 comments

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.

GregorySchwartz avatar Nov 02 '17 15:11 GregorySchwartz