[changeset] property value not paired with name in __add_datasource__.m
David Bateman
David.Bateman at motorola.com
Mon Sep 1 05:30:39 CDT 2008
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
>
>
>
>
This is not the correct fix as __add_datasource__ is looking for a
prop/val pair with the name ?DataSource. It doesn't however make the
assumption that the other arguments that are passed are all
property/value pairs, and in some cases they are.
Trying to generate or error with
plot(1:10,1:10,"LineWidth", 3)
the code works correctly. I then tried a rebuild of voroni.eps with the
changeset I just sent and the build when find. I'd therefore suggest not
making the change to __add_datasource__ you suggest..
Regards
David
--
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
More information about the Octave-maintainers
mailing list