Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sarthak-Sunny opened this issue Aug 16, 2023 · 0 comments
Open

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

Sarthak-Sunny opened this issue Aug 16, 2023 · 0 comments

Comments

@Sarthak-Sunny
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant