practical-machine-learning-with-python
practical-machine-learning-with-python copied to clipboard
Chapter-3,Visualization using Matplotlib,page-170(Legends)
plt.plot(x,y,'g',label='y=x^2') plt.plot(x,z,'b:',label='y=x') plt.legend(loc="best") plt.title('Legend Sample') While trying to exceute following code mention in your book, i am getting error as- ValueError: x and y must have same first dimension, but have shapes (10,) and (50,)