Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
21 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
MakaylaChuck23:
Do you think a learning disability/autism is a "reason" to excuse your lack of behavior? I'm generally curious.
gelphielvr:
Is there a gender neutral pronoun in German? Like a non gendered pronoun that you
Yosad930:
okay ik this is such a random question and i dont even know many people who knows about this much bout its bout the marines.
Breathless:
idk why but am taking it kinda slow on this one BUT it is looking good!
struglynnnn:
7(3+2x) + x =66 whats the value of x and what steps did u follow to find the valu
XxXImHerXxX:
you call me u201cfriendu201d with a grin made of glitter and glueu2014 it sparkles, but it doesnu2019t hold.
2 hours ago
10 Replies
1 Medal
1 day ago
2 Replies
1 Medal
22 hours ago
19 Replies
5 Medals
1 day ago
14 Replies
7 Medals
1 day ago
2 Replies
1 Medal
1 day ago
35 Replies
2 Medals