In the 2nd part of the Twitch Project we are asked to make a line graph using matplotlib.
When Mike plots ‘viewers_hour vs hours’ his x axis is scaled differently to his y axis like so:
Whereas when I post the exact same code my x and y axes are scaled in a weird way.
How can I get my graph to look the same as his? How do I re-scale my x axis so that the hours are stretched out?
I tried to set the boundaries for each axis like so:
plt.axis([0, 23, 0, 120])
but it didn’t work out. I could move on but I’d love to know why this happens and how I can fix it in the future!