Corrected x axis tick rendering function and range