Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 15 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
AsianPanda08: What should i eat for dinner tonight? I can't choose
49 minutes ago 51 Replies 2 Medals
Nina001: Trying 2 figure out what is the square root of 8746685
1 hour ago 23 Replies 2 Medals
SnowyBreaks: Is it bad to lose 3.8 pounds in less than 2 days?
48 minutes ago 42 Replies 0 Medals
kaelynw: tried a lil smt, the arm is off but i like the other stuff
4 hours ago 8 Replies 2 Medals
laylasnii13: Who wanna write or make a song with me???
4 hours ago 8 Replies 0 Medals
kaelynw: art igg
12 hours ago 13 Replies 2 Medals
XShawtyX: Art
1 day ago 6 Replies 0 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!