Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 21 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!
Latest Questions
ShadowKid3: what are examples of a class three lever?
14 hours ago 3 Replies 1 Medal
alphaXtiger: Help pls
21 hours ago 3 Replies 1 Medal
danielfootball123: What are good stocks to invest
1 day ago 3 Replies 0 Medals
Burro: 5(5x+7)+3(x+3)
2 days ago 13 Replies 2 Medals
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!