Issue #17: scientific notation in axis ticks

Surprisingly hard to produce something that works correctly in all
cases...