Fix keep tick formatting when zooming. Thanks to Julien Rouhaud for the patch.