plot() command broken in Octave version 3.0.0 for Red Hat Enterprise?
John W. Eaton
jwe at bevo.che.wisc.edu
Tue Feb 12 15:02:56 CST 2008
On 12-Feb-2008, Rick Niles wrote:
| OK, I've been out of octave development for a while, but something seems
| really wrong here:
|
| octave:2> plot([1 2 3])
| error: can't perform indexing operations for <unknown type> type
| error: called from `plot' in file `/usr/share/octave/3.0.0/m/plot/plot.m'
| octave:2> version
| ans = 3.0.0
| octave:3>
|
| No matter what type of item I pass to plot() I get the same error.
| Could something be corrupted with the RPM?
I can't reproduce this problem with 3.0.0 on a Debian system.
The plot function is fairly short:
function retval = plot (varargin)
[h, varargin] = __plt_get_axis_arg__ ("plot", varargin{:});
oldh = gca ();
unwind_protect
axes (h);
newplot ();
tmp = __plt__ ("plot", h, varargin{:});
unwind_protect_cleanup
axes (oldh);
end_unwind_protect
if (nargout > 0)
retval = tmp;
endif
endfunction
Can you track down where the error happens? Do you have any functions
in your path called gca, axes, newplot, or __plt__ that are not from
Octave 3.0.0?
jwe
More information about the Bug-octave
mailing list