[Pkg-octave-devel] Bug#302034: octave-forge: command 'legend' fails on first call and works afterward

Jan Medlock Jan Medlock <jan.medlock@yale.edu>, 302034@bugs.debian.org
Tue, 29 Mar 2005 14:31:34 -0500


This is a multi-part MIME message sent by reportbug.

--===============0371300628==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: octave-forge
Version: 2004.11.16-6
Severity: normal

The 'legend' command fails the first time it is called and then works
fine after that.  The error message is:

error: invalid row index = 0
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: evaluating prefix operator `!' near line 190, column 7
error: if: error evaluating conditional expression
error: evaluating if command near line 190, column 3
error: called from `legend' in file `/usr/share/octave/site/m/octave-forge/plot/legend.m'

Attached is a very simple script to illustrate the problem.  Run with
'octave -f legend_test.m'.  ('-f' ignores rcfiles at startup, just to
show that it's not a configuration problem.)

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages octave-forge depends on:
ii  atlas3-base [liblapa 3.6.0-19            Automatically Tuned Linear Algebra
ii  atlas3-sse [liblapac 3.6.0-19            Automatically Tuned Linear Algebra
ii  atlas3-sse2 [liblapa 3.6.0-19            Automatically Tuned Linear Algebra
ii  fftw3                3.0.1-11            Library for computing Fast Fourier
ii  lapack3 [liblapack.s 3.0.20000531a-6     library of linear algebra routines
ii  libc6                2.3.2.ds1-20        GNU C Library: Shared libraries an
ii  libcln3              1.1.9-1             Class Library for Numbers (C++)
ii  libg2c0              1:3.3.5-12          Runtime library for GNU Fortran 77
ii  libgcc1              1:3.4.3-12          GCC support library
ii  libginac1.3          1.3.0-2             The GiNaC framework (runtime libra
ii  libgmp3              4.1.4-5             Multiprecision arithmetic library
ii  libgsl0              1.6-1               The GNU Scientific Library (GSL) -
ii  libhdf5-serial-1.6.2 1.6.2-3             Hierarchical Data Format 5 (HDF5) 
ii  libice6              4.3.0.dfsg.1-12.0.1 Inter-Client Exchange library
ii  libjpeg62            6b-10               The Independent JPEG Group's JPEG 
ii  libncurses5          5.4-4               Shared libraries for terminal hand
ii  libpng12-0           1.2.8rel-1          PNG library - runtime
ii  libqhull5            2003.1-1            Calculate convex hulls and related
ii  libreadline5         5.0-10              GNU readline and history libraries
ii  libsm6               4.3.0.dfsg.1-12.0.1 X Window System Session Management
ii  libstdc++5           1:3.3.5-12          The GNU Standard C++ Library v3
ii  libx11-6             4.3.0.dfsg.1-12.0.1 X Window System protocol client li
ii  octave2.1            2.1.67-1            GNU Octave language for numerical 
ii  refblas3 [libblas.so 1.2-8               Basic Linear Algebra Subroutines 3
ii  xlibs                4.3.0.dfsg.1-12     X Keyboard Extension (XKB) configu
ii  zlib1g               1:1.2.2-4           compression library - runtime

-- no debconf information

--===============0371300628==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="legend_test.m"

x = [0 : 0.1 : 10];

plot (x, sin (x));

legend ("Sine");

--===============0371300628==--