]> git.cworth.org Git - acre/commit
Fix 0.0 value on axis to be 0.0.
authorCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 21:19:39 +0000 (13:19 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 7 Nov 2013 21:19:39 +0000 (13:19 -0800)
commit2c0f51b31a3f32c091ae04632f7d8e424f734577
tree820a9d940bc523d2895258047228632349e442fe
parentbacc5e501df0d3615dbe0aa8ef54b91ee3377b6e
Fix 0.0 value on axis to be 0.0.

I recently saw cases where the %g format was cauing a value that
should be 0.0 on the axis to appear as something insane like 5.58e-17.

If the value is within a thousandth of a sub-step, (a sub-step is the
space between two minor ticks on the axis), of 0.0 then force it to be
truly 0.0.
acre.c