|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
Where is "colororder" defined?When trying to use the plot command in Octave I get the following error:
warning: get: invalid property `colororder' error: value on right hand side of assignment is undefined error: evaluating assignment expression near line 33, column 22 error: evaluating if command near line 32, column 5 error: evaluating if command near line 31, column 3 error: called from `__next_line_color__' in file `/usr/share/octave/3.0.0/m/plot/__next_line_color__.m' error: evaluating if command near line 27, column 3 error: called from `newplot' in file `/usr/share/octave/3.0.0/m/plot/newplot.m' error: called from `plot' in file `/usr/share/octave/3.0.0/m/plot/plot.m' Octave 3.0.0 (same with 3.0.2 rc2 etc) gnuplot 4.2.2-1 O/S is Fedora 8 The only way to get this to work is to start octave from the: /usr/local/share/octave/3.0.3/m/plot/ directory. In that case it works fine. Starting it from any other directory causes the above failure. Can anyone please tell me how/where colororder is defined and set up? It is declared an invalid property if I start octave from any other directory! Any ideas as to what I might do/try? Many thanks |
|
|
Re: Where is "colororder" defined?On Thursday, October 02, 2008, at 04:29AM, "Samarkand" <samarkand99-pc@...> wrote:
> >When trying to use the plot command in Octave I get the following error: > >warning: get: invalid property `colororder' >error: value on right hand side of assignment is undefined >error: evaluating assignment expression near line 33, column 22 >error: evaluating if command near line 32, column 5 >error: evaluating if command near line 31, column 3 >error: called from `__next_line_color__' in file >`/usr/share/octave/3.0.0/m/plot/__next_line_color__.m' >error: evaluating if command near line 27, column 3 >error: called from `newplot' in file >`/usr/share/octave/3.0.0/m/plot/newplot.m' >error: called from `plot' in file `/usr/share/octave/3.0.0/m/plot/plot.m' > >Octave 3.0.0 (same with 3.0.2 rc2 etc) >gnuplot 4.2.2-1 >O/S is Fedora 8 > > >The only way to get this to work is to start octave from the: >/usr/local/share/octave/3.0.3/m/plot/ directory. In that case it works fine. >Starting it from any other directory causes the above failure. > >Can anyone please tell me how/where colororder is defined and set up? It is >declared an invalid property >if I start octave from any other directory! > >Any ideas as to what I might do/try? > >Many thanks The error indicates you are running the m-files for version 3.0.0. Running either 3.0.2 (released version) or the developers sources, this functionality works for me. octave-3.1.51+:1> plot([1 2]) octave-3.1.51+:2> get(gca,'colororder') ans = 0.00000 0.00000 1.00000 0.00000 0.50000 0.00000 1.00000 0.00000 0.00000 0.00000 0.75000 0.75000 0.75000 0.00000 0.75000 0.75000 0.75000 0.00000 0.25000 0.25000 0.25000 Ben _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Where is "colororder" defined?
Thanks Ben, I appreciate your comments but I'm not sure that's the case as I'm using 3.0.3. Please see the output I've just captured: ========================================================== [root@matterhorn /]# octave <<< Start Octave in any directory GNU Octave, version 3.0.3 Copyright (C) 2008 John W. Eaton and others. text removed for clarity ......... octave:1> get (gca,"colororder") warning: get: invalid property `colororder' <<< Get the error message octave:2> exit [root@matterhorn /]# cd /usr/local/share/octave/3.0.3/m/plot <<< go to the ../m/plot/ directory [root@matterhorn plot]# octave <<< Start Octave GNU Octave, version 3.0.3 Copyright (C) 2008 John W. Eaton and others. text removed for clarity ........... octave:1> get (gca,"colororder") <<< and it works just fine!! ans = 0.00000 0.00000 1.00000 0.00000 0.50000 0.00000 1.00000 0.00000 0.00000 0.00000 0.75000 0.75000 0.75000 0.00000 0.75000 0.75000 0.75000 0.00000 0.25000 0.25000 0.25000 octave:2> ===================================================== Plot ONLY works if I start Octave from the ../m/plot/ directory which is crazy! The colororder property is not valid if I start Octave from anywhere else. |
|
|
Re: Where is "colororder" defined?On 2-Oct-2008, Samarkand wrote:
| Thanks Ben, I appreciate your comments but I'm not sure that's the case. | | Please see the output I've just captured: | ========================================================== | [root@matterhorn /]# octave <<< Start | Octave in any directory | GNU Octave, version 3.0.3 | Copyright (C) 2008 John W. Eaton and others. | | text removed for clarity ......... | | octave:1> get (gca,"colororder") | warning: get: invalid property `colororder' <<< Get the error | message | octave:2> exit | | [root@matterhorn /]# cd /usr/local/share/octave/3.0.3/m/plot <<< go to the | ../m/plot/ directory | [root@matterhorn plot]# octave <<< Start Octave | GNU Octave, version 3.0.3 | Copyright (C) 2008 John W. Eaton and others. | | text removed for clarity ........... | | octave:1> get (gca,"colororder") | <<< and it works just fine!! | ans = | | 0.00000 0.00000 1.00000 | 0.00000 0.50000 0.00000 | 1.00000 0.00000 0.00000 | 0.00000 0.75000 0.75000 | 0.75000 0.00000 0.75000 | 0.75000 0.75000 0.00000 | 0.25000 0.25000 0.25000 | | octave:2> | | ===================================================== | | Plot ONLY works if I start Octave from the ../m/plot/ directory which is | crazy! No, it's not crazy. It's probably happening because you have the system directories for the 3.0.0 version in your load path, so you are mixing versions. However, the current directory (".") is always first in the load path, so when you start Octave in the /usr/local/share/octave/3.0.3/m/plot directory, you are getting the version of the plotting functions that match the version of Octave that you are using. To verify that this is the problem, I suggest that you start Octave in your home directory and type the following commands: which plot path Is the plot function coming from the 3.0.0 directory tree? Does the output of path list the system directories for the 3.0.0 version? What is in your ~/.octaverc file? jwe _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Where is "colororder" defined?Many thanks John. I can't see any obvious evidence of using the 3.0.0. tree, here's the output from your suggestion: ================================================================== [root@matterhorn ~]# cd ~ [root@matterhorn ~]# octave GNU Octave, version 3.0.3 Copyright (C) 2008 John W. Eaton and others. Preamble removed for clarity........................................................ octave:1> which plot plot is the user-defined function from the file /usr/local/share/octave/3.0.3/m/plot/plot.m octave:2> path Octave's search path contains the following directories: /usr/local/libexec/octave/3.0.3/site/oct/i686-pc-linux-gnu /usr/local/libexec/octave/site/oct/api-v32/i686-pc-linux-gnu /usr/local/libexec/octave/site/oct/i686-pc-linux-gnu /usr/local/share/octave/site/api-v32/m /usr/local/share/octave/site/m /usr/local/share/octave/site/m/startup /usr/local/libexec/octave/3.0.3/oct/i686-pc-linux-gnu . removed for clarity (all pointing to the 3.0.3 tree) /usr/local/share/octave/3.0.3/m/plot . removed for clarity (all pointing to the 3.0.3 tree) . octave:3> get (gca,"colororder") warning: get: invalid property `colororder' octave:4> ============================================================= On your question of my .octaverc file well interestingly there is no such file on my system so am using the default environment I guess. Regards |
|
|
Re: Where is "colororder" defined?On 2-Oct-2008, Samarkand wrote:
| > To verify that this is the problem, I suggest that you start Octave in | > your home directory and type the following commands: | > | > which plot | > path | > | > Is the plot function coming from the 3.0.0 directory tree? | > | > Does the output of path list the system directories for the 3.0.0 | > version? | > | > What is in your ~/.octaverc file? | > | > jwe | > _______________________________________________ | > Help-octave mailing list | > Help-octave@... | > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave | > | > | | Many thanks John. | | I can't see any obvious evidence of using the 3.0.0. tree, here's the output | from your suggestion: | | ================================================================== | [root@matterhorn ~]# cd ~ | [root@matterhorn ~]# octave | GNU Octave, version 3.0.3 | Copyright (C) 2008 John W. Eaton and others. | | Preamble removed for | clarity........................................................ | | octave:1> which plot | plot is the user-defined function from the file | /usr/local/share/octave/3.0.3/m/plot/plot.m | octave:2> path | | Octave's search path contains the following directories: | /usr/local/share/octave/3.0.3/m/testfun | /usr/local/share/octave/3.0.3/m/control/base | . | ETC (all pointing to the 3.0.3 tree) | . | /usr/local/share/octave/3.0.3/m/plot | . | ETC (all pointing to the 3.0.3 tree) | . | | octave:3> get (gca,"colororder") | warning: get: invalid property `colororder' | octave:4> | ============================================================= | | On your question of my .octaverc file well interestingly there is no such | file on my system so am using the default environment I guess. What does which octave or type octave at the shell prompt tell you? Using that result, what does ldd /path/to/octave show? As you are the only person who has reported this problem, and given that it is a pretty obvious problem that just about anyone trying to plot anything would notice, I highly suspect something is wrong with your installation. But where did you get Octave 3.0.3? I don't think the release has been announced yet. So which release candidate are you using? How did you build it? Can anyone else who has been testing the release candidates confirm this problem? Is your installed copy of Octave somehow linking with old libraries? jwe _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Where is "colororder" defined?On Thu, Oct 2, 2008 at 6:41 PM, John W. Eaton <jwe@...> wrote:
> On 2-Oct-2008, Samarkand wrote: > > | > To verify that this is the problem, I suggest that you start Octave in > | > your home directory and type the following commands: > | > > | > which plot > | > path > | > > | > Is the plot function coming from the 3.0.0 directory tree? > | > > | > Does the output of path list the system directories for the 3.0.0 > | > version? > | > > | > What is in your ~/.octaverc file? > | > > | > jwe > | > _______________________________________________ > | > Help-octave mailing list > | > Help-octave@... > | > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > | > > | > > | > | Many thanks John. > | > | I can't see any obvious evidence of using the 3.0.0. tree, here's the output > | from your suggestion: > | > | ================================================================== > | [root@matterhorn ~]# cd ~ > | [root@matterhorn ~]# octave > | GNU Octave, version 3.0.3 > | Copyright (C) 2008 John W. Eaton and others. > | > | Preamble removed for > | clarity........................................................ > | > | octave:1> which plot > | plot is the user-defined function from the file > | /usr/local/share/octave/3.0.3/m/plot/plot.m > | octave:2> path > | > | Octave's search path contains the following directories: > | /usr/local/share/octave/3.0.3/m/testfun > | /usr/local/share/octave/3.0.3/m/control/base > | . > | ETC (all pointing to the 3.0.3 tree) > | . > | /usr/local/share/octave/3.0.3/m/plot > | . > | ETC (all pointing to the 3.0.3 tree) > | . > | > | octave:3> get (gca,"colororder") > | warning: get: invalid property `colororder' > | octave:4> > | ============================================================= > | > | On your question of my .octaverc file well interestingly there is no such > | file on my system so am using the default environment I guess. > > What does > > which octave > > or > > type octave > > at the shell prompt tell you? > > Using that result, what does > > ldd /path/to/octave > > show? > > As you are the only person who has reported this problem, and given > that it is a pretty obvious problem that just about anyone trying to > plot anything would notice, I highly suspect something is wrong with > your installation. > > But where did you get Octave 3.0.3? I don't think the release has > been announced yet. So which release candidate are you using? How > did you build it? > > Can anyone else who has been testing the release candidates confirm > this problem? > It seems to work fine with my build of 3.0.3 RC2. > Is your installed copy of Octave somehow linking with old libraries? > > jwe > _______________________________________________ > Help-octave mailing list > Help-octave@... > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave > -- RNDr. Jaroslav Hajek computing expert Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Where is "colororder" defined?On Thu, Oct 2, 2008 at 4:47 PM, Samarkand <samarkand99-pc@...> wrote:
> > > > John W. Eaton wrote: >> >> On 2-Oct-2008, Samarkand wrote: >> >> | Thanks Ben, I appreciate your comments but I'm not sure that's the case. >> | >> | Please see the output I've just captured: >> | ========================================================== >> | [root@matterhorn /]# octave <<< Start >> | Octave in any directory >> | GNU Octave, version 3.0.3 >> | Copyright (C) 2008 John W. Eaton and others. >> | >> | text removed for clarity ......... >> | >> | octave:1> get (gca,"colororder") >> | warning: get: invalid property `colororder' <<< Get the error >> | message >> | octave:2> exit >> | >> | [root@matterhorn /]# cd /usr/local/share/octave/3.0.3/m/plot <<< go to >> the >> | ../m/plot/ directory >> | [root@matterhorn plot]# octave <<< Start Octave >> | GNU Octave, version 3.0.3 >> | Copyright (C) 2008 John W. Eaton and others. >> | >> | text removed for clarity ........... >> | >> | octave:1> get (gca,"colororder") >> | <<< and it works just fine!! >> | ans = >> | >> | 0.00000 0.00000 1.00000 >> | 0.00000 0.50000 0.00000 >> | 1.00000 0.00000 0.00000 >> | 0.00000 0.75000 0.75000 >> | 0.75000 0.00000 0.75000 >> | 0.75000 0.75000 0.00000 >> | 0.25000 0.25000 0.25000 >> | >> | octave:2> >> | >> | ===================================================== >> | >> | Plot ONLY works if I start Octave from the ../m/plot/ directory which is >> | crazy! >> >> No, it's not crazy. It's probably happening because you have the >> system directories for the 3.0.0 version in your load path, so you are >> mixing versions. However, the current directory (".") is always first >> in the load path, so when you start Octave in the >> /usr/local/share/octave/3.0.3/m/plot directory, you are getting the >> version of the plotting functions that match the version of Octave >> that you are using. >> >> To verify that this is the problem, I suggest that you start Octave in >> your home directory and type the following commands: >> >> which plot >> path >> >> Is the plot function coming from the 3.0.0 directory tree? >> >> Does the output of path list the system directories for the 3.0.0 >> version? >> >> What is in your ~/.octaverc file? >> >> jwe >> _______________________________________________ >> Help-octave mailing list >> Help-octave@... >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave >> >> > > Many thanks John. > > I can't see any obvious evidence of using the 3.0.0. tree, here's the output > from your suggestion: > > ================================================================== > [root@matterhorn ~]# cd ~ > [root@matterhorn ~]# octave > GNU Octave, version 3.0.3 > Copyright (C) 2008 John W. Eaton and others. > > Preamble removed for > clarity........................................................ > > octave:1> which plot > plot is the user-defined function from the file > /usr/local/share/octave/3.0.3/m/plot/plot.m > octave:2> path > > Octave's search path contains the following directories: > /usr/local/share/octave/3.0.3/m/testfun > /usr/local/share/octave/3.0.3/m/control/base > . > ETC (all pointing to the 3.0.3 tree) > . > /usr/local/share/octave/3.0.3/m/plot > . > ETC (all pointing to the 3.0.3 tree) > . > > octave:3> get (gca,"colororder") > warning: get: invalid property `colororder' > octave:4> > ============================================================= > > On your question of my .octaverc file well interestingly there is no such > file on my system so am using the default environment I guess. > Is it possible that you're using 3.0.3 RC1? There was a nasty bug in RC1, that prevented 'split' from working properly if two consecutive separators occured. That could sometimes cause problems when parsing paths. Can you try entering `split ("a//a", "/")' into your build of Octave? -- RNDr. Jaroslav Hajek computing expert Aeronautical Research and Test Institute (VZLU) Prague, Czech Republic url: www.highegg.matfyz.cz _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Where is "colororder" defined?
Thaks again John, I'm inclined to agree that it is a defect in my installation so don't let me take any more of your time. For completeness sake, in answer to your questions: ============================================== [root@matterhorn log]# which octave /usr/local/bin/octave [root@matterhorn log]# ldd /usr/local/bin/octave linux-gate.so.1 => (0x00110000) liboctinterp.so => /usr/local/lib/octave-3.0.3/liboctinterp.so (0x00af6000) liboctave.so => /usr/local/lib/octave-3.0.3/liboctave.so (0x00111000) libcruft.so => /usr/local/lib/octave-3.0.3/libcruft.so (0x00952000) liblapack.so.3 => /usr/lib/atlas/liblapack.so.3 (0x02000000) libblas.so.3 => /usr/lib/atlas/libblas.so.3 (0x02509000) libfftw3.so.3 => /usr/lib/libfftw3.so.3 (0x05751000) libreadline.so.5 => /lib/libreadline.so.5 (0x0099f000) libncurses.so.5 => /lib/libncurses.so.5 (0x053ff000) libdl.so.2 => /lib/libdl.so.2 (0x009d4000) libhdf5.so.0 => /usr/lib/libhdf5.so.0 (0x05474000) libz.so.1 => /lib/libz.so.1 (0x009d9000) libgfortran.so.1 => /usr/lib/libgfortran.so.1 (0x009ec000) libm.so.6 => /lib/libm.so.6 (0x00a6c000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x04a06000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00a95000) libc.so.6 => /lib/libc.so.6 (0x014f8000) libpthread.so.0 => /lib/libpthread.so.0 (0x00aa1000) libtinfo.so.5 => /lib/libtinfo.so.5 (0x053e5000) /lib/ld-linux.so.2 (0x00ad9000) libssl.so.6 => /lib/libssl.so.6 (0x03212000) libcrypto.so.6 => /lib/libcrypto.so.6 (0x052b0000) libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x02f77000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x03ae8000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x00aba000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x02e8f000) libresolv.so.2 => /lib/libresolv.so.2 (0x00abd000) libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x02b46000) libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x051fd000) libselinux.so.1 => /lib/libselinux.so.1 (0x02d50000) [root@matterhorn log]# =================================================== I downloaded 3.0.3 rc2 from here http://www.nabble.com/3.0.3-release-candidate-td19645333.html And I built it using the supplied instructions. There was a handful of failures during make check but otherwise all OK. Incidentally the reason I went to 3.0.3 was because I was having the same error with colororder with 3.0.0 (per my first post). As a circumvention to the problem I just cd to the plot directory you can see below. Plot then works irrespective of the directory I happen to start Octave from: [root@matterhorn log]# cat /usr/local/share/octave/site/m/startup/octaverc ## System-wide startup file for Octave. ## ## This file should contain any commands that should be executed each ## time Octave starts for every user at this site. cd /usr/local/share/octave/3.0.3/m/plot/ <<< I just added this to make it work So unless I can get to the bottom of it I'm happy to live with that. Thanks again John for your help and you and your colleagues continuing support for Octave. It is very much appreciated. Regards...........Chris |
| Free embeddable forum powered by Nabble | Forum Help |