So I would like to change the way the numbers are presented on the x and y axis. I would either like no powers being represented at all or the powers in each individual tick. Is this possible?
indx = np.where(time > 0.28549) # indexs where i want to zoom in
plt.plot(time[indx], dist[indx], label='Without air resistance')
plt.plot(time[indx], distd[indx], label='With air resistance')
plt.xlabel('Time / s')
plt.ylabel('Distance from $y_0$ / m')
plt.ticklabel_format(style='plain')
plt.title('A closer look at the distance-time graph')
plt.legend()
print(time[-1])
thanks.
You can use the tick formatter
As a matter of personal opinion however, I think the matplotlib default looks better because it makes it easier to work out the tick intervals given such a distracting number of decimal places.