Axis auto-centering and numerical precision

The above time series was obtained from a non-Gaussian distribution; the vertical axis is not centered at 0 but rather at that tiny value (something ^ -18). Are the two things related and can the axis centering be rounded either by hand or automatically ?
I guess the easiest way to centre the y axis is to manually set yMin ?= -x and yMax ?= x for some x. In your case x=0.04 should do it.
Or do you mean you want the number displayed to be 0.0? There's two functions that determine the numbers displayed.
majorTicksFunction :: (Double,Double) -> [Double]takes the axis range and gives a list of tick values to use.tickLabelFunction :: [Double] -> (Double,Double) -> [(Double, String)]takes the result ofmajorTicksFunctionand the axis range and gives the positions and strings to use.
You could manually set either to get it to display 0.0 exactly.
I'm not sure the best way to deal with this case automatically. You could do something adhoc like map (\x -> if x < 1e-5 * abs (b - a) then 0 else x) ticks (where a and b are the bounds of the axis) to set values very close to zero and much smaller than the data range to exactly zero. But it's not perfect.
Another option is to calculate the majorTicksFunction using Rational so we get exact values.