Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (mattc):

I need help setting up a legend for pylab, keeps giving me errors, I think im just using the wrong syntax. legend() ?

OpenStudy (mattc):

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

OpenStudy (mattc):

do you know what line 1-3 are? legend( (line1, line2, line3), ('label1', 'label2', 'label3') )

OpenStudy (mattc):

not a big deal, thanks for the help

OpenStudy (anonymous):

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!
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!