I've been running the following lines of code and instead of adding labels and stuff to one plot, Python just creates a new plot after every command.
plt.plot(x, ydata, 'bo')
plt.plot(x,y,'r')
plt.ylabel('Dependent Variable')
plt.xlabel('Indepdendent Variable')
plt.show()
So, for example, after running the plt.ylabel()
command, Python creates a new blank plot with just the y axis labeled as 'Dependent Variable'
.
EDIT I've managed to solve the issue by following the steps here