modified draw_time_dim.py