|
Worked like a charm, thanks a lot
"Rick Rosson" <rrosson@mathworks.com> wrote in message
<f99ksl$qbh$1@fred.mathworks.com>...
> Hi Karl,
>
> Yes, it is possible to add a title to a legend, using
Handle Graphics:
>
> f = figure;
> a = axes;
> hold on;
>
> p(1) = plot(t,X,'color','b');
> p(2) = plot(t,Y,'color','r');
> ...
> ...
>
> h = legend('X','Y');
> v = get(h,'title');
> set(v,'string','Legend Title');
>
>
> I hope that helps. Thanks.
>
> Rick
>
>
>
>
>
> "Karl Trumstedt" <karltru@gmail.com> wrote in message
> news:f99i6n$9l7$1@fred.mathworks.com...
> > Hi all,
> >
> > I am trying to add a title to my graph's legend, is this
> > possible? I have tried a few alternatives and it seems
like
> > this is not supported, the easiest way seems to add a
> > textlabel at the top of the legend and pin it to the
graph.
> > I figured that I should make a try asking here just in
case.
> >
>
>
|