milliams/plotlib

y ticks value formatting

RCasatta opened this issue · 1 comments

As seen in the line example one of the value on the y axis it's been formatted as something like 0.0000000012 while the other values are 1.0 2.0 and so on.
obviously, formatting with a fixed value of decimals could be wrong for other examples.
Is it possible to somehow recognize the float rounding based on the lenght of other values of the y ticks and dinamically found a rounding?

I see there is a test case about this so you already know...