Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
9 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
Countless7Echos:
Aye.. I need actually some help on the shading here.. if the light is from above too I just feel something is off.
kaelynw:
tried a lil smt, the arm is off but i like the other stuff
Countless7Echos:
I don't know just no sketch doodle day :p finished a video already so I'm pretty
Ferrari:
Depression Hi, it's me, Jordan (ferrari). It's supposed to be the Fourth of July but I feel kinda depressed and mad at myself for no reason.
4 hours ago
19 Replies
3 Medals
16 hours ago
27 Replies
3 Medals
2 days ago
9 Replies
2 Medals
2 days ago
13 Replies
1 Medal