[changeset] property value not paired with name in __add_datasource__.m

David Bateman David.Bateman at motorola.com
Mon Sep 1 05:28:47 CDT 2008


Ben Abbott wrote:
>
> On Aug 31, 2008, at 12:52 PM, Ben Abbott wrote:
>
>>
>> On Aug 31, 2008, at 11:15 AM, John W. Eaton wrote:
>>
>>> On 31-Aug-2008, Michael Goffioul wrote:
>>>
>>> | The following patch (in graphics mq) solves the problem
>>> | 
>>> http://hg.tw-math.de/octave-graphics-mq/file/9d2c6e36870f/set_empty_args 
>>>
>>>
>>> I applied it.
>>>
>>> Thanks,
>>>
>>> jwe
>>
>> I started fresh, but the default branch still fails to build ... new 
>> error though :-)
>>
>> ../../run-octave -f -q -H -p . --eval "geometryimages ('voronoi', 
>> 'eps');"
>> error: set: invalid number of arguments
>> error: called from:
>> error:   
>> /Users/bpabbott/Development/mercurial/octave-3-0-0/scripts/plot/__plt2vv__.m 
>> at line 83, column 7
>> error:   
>> /Users/bpabbott/Development/mercurial/octave-3-0-0/scripts/plot/__plt2__.m 
>> at line 68, column 14
>> error:   
>> /Users/bpabbott/Development/mercurial/octave-3-0-0/scripts/plot/__plt__.m 
>> at line 79, column 10
>> error:   
>> /Users/bpabbott/Development/mercurial/octave-3-0-0/scripts/plot/plot.m 
>> at line 189, column 5
>> error:   
>> /Users/bpabbott/Development/mercurial/octave-3-0-0/doc/interpreter/geometryimages.m 
>> at line 45, column 5
>>
>> make[3]: *** [voronoi.eps] Error 1
>> make[2]: *** [interpreter] Error 2
>> make[1]: *** [doc] Error 2
>> make: *** [all] Error 2
>>
>> I identified the problem is in __plt2vv__.m
>>
>> [...]
>> 69     hg = hggroup ();
>> 70     retval = hg;
>> 71     properties = __add_datasource__ ("__plt2vv__", hg, {"x", "y", 
>> "z"},
>> 72                                      properties{:});
>> 73
>> 74     h = line (x, y, "keylabel", key, "color", color,
>> 75               "linestyle", options.linestyle,
>> 76               "marker", options.marker, "parent", hg);
>> 77
>> 78     __add_line_series__ (h, hg);
>> 79     if (! isempty (properties))
>> 80       set (hg, properties{:});
>> 81     endif
>>
>> Prior to line 71"properties" is set as
>>
>> {
>>  [1,1] = LineWidth
>>  [1,2] =  3
>> }
>>
>> Subsequently, "properties is set as
>>
>> {
>>  [1,1] = LineWidth
>> }
>>
>> ... there is no value paired with the property name. I'm not familiar 
>> with the intended behavior, but have attempted a fix. Changeset is 
>> attached. With this in place, I now get warnings but haven't looked 
>> deeper.
>>
>> geometryimages ('voronoi', 'eps')
>> warning: legend: plot data is empty; setting key labels has no effect
>> warning: legend: ignoring extra labels
>>
>> Ben
>>
>> <__add_datasource__.txt>
>
> I found another instance of "set" being used with empty properties, 
> combined patch attached.
>
> Ben
>
>   
Working back from my previous patch that introduced this issue and 
taking into account the fixes already made by Michael, here is the 
changeset that gets all of these

D.





>
>
>   


-- 
David Bateman                                David.Bateman at motorola.com
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch8493
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080901/9cf4a7a9/attachment.ksh 


More information about the Octave-maintainers mailing list