octave-maintainers
[Top][All Lists]
Advanced

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

Re: compare plots results


From: Andreas Weber
Subject: Re: compare plots results
Date: Thu, 03 Jul 2014 10:18:40 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0

On 30.06.2014 19:39, Rik wrote:
> On 06/30/2014 04:00 AM, address@hidden wrote:
>> Message: 2
>> Date: Sun, 29 Jun 2014 20:09:05 +0200
>> From: Andreas Weber <address@hidden>
>> To: address@hidden
>> Subject: Re: revive compare_plot_demos
>> Message-ID: <address@hidden>
>> Content-Type: text/plain; charset=ISO-8859-15
>>
>> * matlab/diary.log: ERROR in legend_01: Error using handle.handle/set
>> Invalid or deleted object.
>>
>>  This is our demo block:
>>   clf;
>>   plot (rand (2));
>>   title ('legend called with cellstr and string inputs for labels');
>>   h = legend ({'foo'}, 'bar');
>>   legend location northeastoutside
>>   set (h, 'fontsize', 20);
>>
>>  -> I think we should change "legend location northeastoutside" to "set
>> (h, 'location', 'northeastoutside');"
> Does Matlab accept this?
> legend (h, 'location', 'northeastoutside')

After this h is deleted:
>> legend (h, 'location', 'northeastoutside')
>> get(h,'type')
Error using handle.handle/get
Invalid or deleted object.

and therefore the subsequent set (h, 'fontsize', 20); fails.

This would work:
plot (rand (2));
title ('legend called with cellstr and string inputs for labels');
h = legend ({'foo'}, 'bar');
h = legend (h, 'location', 'northeastoutside')
set (h, 'fontsize', 20);

(or set (h, 'location', 'northeastoutside');)

-- Andy



reply via email to

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