practical-machine-learning-with-python icon indicating copy to clipboard operation
practical-machine-learning-with-python copied to clipboard

Chapter-3,Visualization using Matplotlib,page-170(Legends)

Open Sarthak-Sunny opened this issue 2 years ago • 0 comments

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,)

Sarthak-Sunny avatar Aug 16 '23 08:08 Sarthak-Sunny