'figure' does not accept 0 as argument
Sergei Steshenko
sergstesh at yahoo.com
Mon Mar 10 04:04:08 CDT 2008
--- "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
> On 9-Mar-2008, Sergei Steshenko wrote:
>
> | Hello All,
> |
> | I've noticed this behavior:
> | "
> | GNU Octave, version 3.0.0
> | Copyright (C) 2007 John W. Eaton and others.
> | This is free software; see the source code for copying conditions.
> | There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
> | FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
> |
> | Octave was configured for "i686-pc-linux-gnu".
> |
> | Additional information about Octave is available at http://www.octave.org.
> |
> | Please contribute if you find this software useful.
> | For more information, visit http://www.octave.org/help-wanted.html
> |
> | Report bugs to <bug at octave.org> (but first, please read
> | http://www.octave.org/bugs.html to learn how to write a helpful report).
> |
> | For information about changes from previous versions, type `news'.
> |
> | octave:1> figure(0)
> | warning: get: invalid property `type'
> | error: figure: expecting figure handle or figure number
> | error: evaluating if command near line 41, column 5
> | error: evaluating if command near line 39, column 3
> | error: called from `figure' in file
> | `/maxtor5/sergei/AppsFromScratchWD/install/octave-3.0.0/share/octave/3.0.0/m/plot/figure.m'
> | octave:1> figure(1)
> | octave:2>
> | ".
> |
> | Well, still, 0 is an integer number, so I do not understand the "figure number" part in
> | "error: figure: expecting figure handle or figure number" message.
>
> The diagnostic could be better
Could you please modify the message to be
error: figure: expecting figure handle or positive figure number
- the newly added word being "positive"
?
Thanks,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the Bug-octave
mailing list