help-octave
[Top][All Lists]
Advanced

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

Re: Boxed legend not correct size


From: Andy Buckle
Subject: Re: Boxed legend not correct size
Date: Mon, 20 Feb 2012 18:54:41 +0000



On Monday, 20 February 2012, Andy Buckle <address@hidden> wrote:
> You don't need admin rights to install mingw builds. As long as you can write to a path that has no spaces in, it should be fine.
>
>
>
> On Monday, 20 February 2012, am304 <address@hidden> wrote:
>> Hi, I am using GNU Octave 3.2.4 on Windows XP x64 SP2 with GNU plot 4.4. Unfortunately, I can't upgrade to a newer version of either due to IT restrictions (I don't have admin priviledges either on my machine). I have noticed that when trying to insert a (boxed) legend, made up of a cell array of strings in combination with hold on, the size of the legend is incorrect in the sense that it's far too big compared to the size of the text it's supposed to encase. Here is a simple example that replicates the issue:
>>
>> x = 0:0.01:10;
>> plot(x,x);
>> hold on
>> plot(x,x.*x);
>> plot(x,2*x.*x);
>> legend_str{1}='first line';
>> legend_str{2}='second line';
>> legend_str{3}='third line';
>> legend(legend_str)
>> legend('boxon')
>> grid on
>>
>> This gives the following result in GNU plot: In my real application, the strings are somewhat longer and the problem is compounded, with the legend taking almost all of the width of the figure. Is this something that can be fixed? I should also say that I changed the
>>
>> __next_line_color__
>>
>> function as per this post to overcome the issues with hold on and line colours. Any suggestions welcome. Many thanks in advance, Arnaud
>> ________________________________
>> View this message in context: Boxed legend not correct size
>> Sent from the Octave - General mailing list archive at Nabble.com.
>>
>
> --
> /* andy buckle */
>

Apologies for top posting. Using a mobile device, and quite forgot myself.

--
/* andy buckle */

reply via email to

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