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');
> 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');