octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with legend


From: Ben Abbott
Subject: Re: Help with legend
Date: Sat, 15 Dec 2018 07:38:03 +0900

> On Dec 15, 2018, at 6:50 AM, Rik <address@hidden> wrote:
> 
> Could someone try the following in Matlab and send me the resulting image? 
> I'm trying to test whether the automatic positioning of the legend box
> takes in to account the axes ticks.
> 
> --- Start Code ---
> clf;
> plot (rand (3,3));
> set (gca, 'xtick', 1:0.25:3, 'ytick', 0:0.1:1);
> set (gca, 'ticklength', [0.03 .05]);
> hl = legend ();
> print ('legtst.png', '-dpng');
> --- End Code ---
> 
> Thanks,
> Rik

Rik,

For auto-placement you should set location to ‘Best’. If no location is 
specified, it defaults to ’NorthEast”

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]