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

Ben Abbott bpabbott at mac.com
Sun Aug 31 11:52:24 CDT 2008


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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: __add_datasource__.txt
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080831/5946a5a2/attachment.txt 
-------------- next part --------------







More information about the Octave-maintainers mailing list