Thread Subject: LEGENDS

Subject: LEGENDS

From: Andres Klever

Date: 24 Nov, 2009 03:03:21

Message: 1 of 4

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!
 

Subject: LEGENDS

From: kinor

Date: 24 Nov, 2009 08:02:20

Message: 2 of 4

"Andres Klever" <andisoto@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')

Subject: LEGENDS

From: Andres Klever

Date: 24 Nov, 2009 13:32:23

Message: 3 of 4

"kinor " <kinor.removethiswithdot@gmx.de> wrote in message <heg3uc$q3n$1@fred.mathworks.com>...
> "Andres Klever" <andisoto@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')


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!

Subject: LEGENDS

From: Steven Lord

Date: 26 Nov, 2009 23:30:45

Message: 4 of 4


"Andres Klever" <andisoto@gmail.com> wrote in message
news:hegn97$9jm$1@fred.mathworks.com...
> "kinor " <kinor.removethiswithdot@gmx.de> wrote in message
> <heg3uc$q3n$1@fred.mathworks.com>...
>> "Andres Klever" <andisoto@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')
>
>
> 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???

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
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com