Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LEGENDS

0 views
Skip to first unread message

Andres Klever

unread,
Nov 23, 2009, 10:03:21 PM11/23/09
to
Hi my problem is, i want to hide an specific legend, i am ploting two equations and i just need to put one name in the legend..... the problem is that the legend box show me legends for both equations i want to hide one of them.... how can i do this??

thanks a lot!

kinor

unread,
Nov 24, 2009, 3:02:20 AM11/24/09
to
"Andres Klever" <andi...@gmail.com> wrote in message <hefidp$oth$1...@fred.mathworks.com>...

> Hi my problem is, i want to hide an specific legend, i am ploting two equations and i just need to put one name in the legend..... the problem is that the legend box show me legends for both equations i want to hide one of them.... how can i do this??
>
> thanks a lot!
>

Hi Andreas,

help legend

hth
kinor


ps:
h1 = plot(data1)
h2 = plot(data2)

legend(h2, 'description')

Andres Klever

unread,
Nov 24, 2009, 8:32:23 AM11/24/09
to
"kinor " <kinor.remov...@gmx.de> wrote in message <heg3uc$q3n$1...@fred.mathworks.com>...


well, thanks but the exact problem is that i have 5 plots and i need to put 4 of them in the legend and keep one out, and i guess that that isnt going to work..... do you have another trick???

thanks!

Steven Lord

unread,
Nov 26, 2009, 6:30:45 PM11/26/09
to

"Andres Klever" <andi...@gmail.com> wrote in message
news:hegn97$9jm$1...@fred.mathworks.com...

Why don't you try it and see if it works? Pass in a vector containing the 4
handles of the plots you want in the legend into the LEGEND function.

--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


0 new messages