duplicate function deleted
added tests and type spec for strip_trailing_zeros
added test for time grid
delete unused case
added test for too close values on time grid
calc_time_grid signature change
more correct test
added maxlabelwidth for calc_time_grid
corrected calc_time_grid for too close X-values
draw sub time grid without labels