Added dynamic drawing of tick marks on the axis