Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
15 Online
I need help setting up a legend for pylab, keeps giving me errors, I think im just using the wrong syntax. legend() ?
Still Need Help?
Join the QuestionCove community and study together with friends!
kind of figured it out not sure why the syntax is how it is tho, but i have to do plot([],[], label = 'name') and then call legend()
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.legend
do you know what line 1-3 are? legend( (line1, line2, line3), ('label1', 'label2', 'label3') )
not a big deal, thanks for the help
I believe they're line plots. Created with the plot function.
Can't find your answer?
Make a FREE account and ask your own questions, OR help others and earn volunteer hours!
Join our real-time social learning platform and learn together with your friends!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Ferrari:
I Have Returned to Writing Music (by me) so if you don't know, I used to write songs on here and post them, some of them were lowkey corny though.
AsianPanda08:
What should i eat for dinner tonight? I can't choose
Countless7Echos:
whaa this looks so silly, nothing is funnier then looking at how I draw my hands
Countless7Echos:
I don't know just no sketch doodle day :p finished a video already so I'm pretty
21 minutes ago
3 Replies
0 Medals
49 minutes ago
51 Replies
2 Medals
8 hours ago
8 Replies
0 Medals
1 day ago
9 Replies
2 Medals