Quantcast
Channel: MATLAB Central Newsreader - tag:"set"
Viewing all articles
Browse latest Browse all 22

Re: Legend outside of plot ??

$
0
0
Ingrid Reyzl <reyzl@mail.desy.de> wrote in message <36E50F80.4174@mail.desy.de>...
> Hi everybody,
>
> how can i position the legend outside of a plot? (like it is possible
> with colorbar ..)
>
>
> My Plot LEGEND
> ****************** |-------|
> * * | |
> * * | |
> y * * | |
> * * | |
> * * |-------|
> ******************
> x
>
>
>
> thank you much for any ideas and help
> grettings from cloudy Hamburg,
> Ingrid
>
>
>
>
>
> Ingrid Reyzl
> DESY, Notkestr. 85, 22 607 Hamburg, Germany
> Tel.: +49 - (0)40 - 8998 33 51
> Fax : +49 - (0)40 - 8998 43 05

All you need to do is put the following two lines after you define your legend:

lh=findall(gcf,'tag','legend');
set(lh,'location','northeastoutside');

Viewing all articles
Browse latest Browse all 22

Trending Articles