help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot bug with redhat 8.0


From: Dmitri A. Sergatskov
Subject: Re: plot bug with redhat 8.0
Date: Wed, 13 Nov 2002 21:48:05 -0700 (MST)

On Wed, 13 Nov 2002, Dirk Eddelbuettel wrote:

> Weird. As John remarked, this does of course work as it should on Debian.
  ^^^^^
Yep. I suspect it may be a glibc/gcc issue.
I have gcc-3.2-7, glibc-2.2.93, libstdc++-3.2-7 

> What happens when you run the regression tests after building octave? Also,

octave 2.1.39, build with ./configure --enable-shared --enable-dl
CFLAGS="-O3 -mcpu=athlon -march=athlon -pipe", 
CXXFLAGS= <same>
FFLAGS= <same>

make all in test/ directory produses 4 failures
...
FAIL: octave.test/eval-catch/eval-catch-9.m
FAIL: octave.test/eval-catch/eval-catch-10.m
...
FAIL: octave.test/try/try-9.m
FAIL: octave.test/try/try-10.m


> try saving what is passed to gnuplot. I.e., after
> 
> octave2.1:1> gnuplot_binary
> gnuplot_binary = gnuplot
> octave2.1:2> gnuplot_binary ="tee /tmp/file.txt | gnuplot";
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This one did not work for some reason -- whatever I set gnuplot_binary
on the command line it is still would just use what I had in .octaverc.
It did work when I set this variables in .octaverc.

Here is an output:

set data style lines
set mouse
set mouse labels
set nologscale
set nopolar
pl '/tmp/oct-lhS0vw' t "line 1",\
   '/tmp/oct-ufULMS' t "line 2",\
   '/tmp/oct-Nikr6e' t "line 3",\
   '/tmp/oct-Wq7dFD' t "line 4",\
   '/tmp/oct-rSQog2' t "line 5",\
   '/tmp/oct-EEvlLq' t "line 6",\
   '/tmp/oct-3wwFeP' t "line 7",\
   '/tmp/oct-M7mHFd' t "line 8"


(And there are only 8 oct-* file in /tmp)

File oct-3wwFeP looks kind of funny:

address@hidden tmp]$ cat oct-3wwFeP
# name: /tmp/oct-3wwFeP
# type: matrix
# rows: 10
# columns: 11
 1 -0.570101022720337 -1.28507351875305 0.232933446764946 -1.20839667320251 
-0.71308970451355 -0.777242660522461 0.607572376728058 -0.944072544574738 
-0.57978743314743 0.595449388027191
 2 -1.49068665504456 -0.354796648025513 0.28005439043045 0.555978178977966 
1.77818715572357 -1.14184379577637 -1.14142954349518 -1.1330314874649 
0.783894121646881 -1.99687039852142
 3 1.5434103012085 1.69992208480835 0.510467827320099 -0.718674719333649 
-0.581440985202789 0.376630187034607 1.39517915248871 0.277050346136093 
-0.818231046199799 0.977557957172394
 4 2.71550989151001 1.1847813129425 0.255771577358246 0.597098708152771 
-0.307420819997787 1.26983273029327 -0.475955665111542 -0.720084071159363 
-1.0538182258606 1.05911600589752
 5 0.931000828742981 0.296330690383911 0.32110807299614 -1.0674694776535 
-0.165715426206589 0.747402846813202 1.3065505027771 -0.198064267635345 
1.05542969703674 -1.43997490406036
 6 -2.40403008460999 0.238159343600273 1.35700619220734 0.967161297798157 
-0.108384467661381 1.57723522186279 0.595821022987366 -1.50835359096527 
-0.134141445159912 -0.0486421436071396
 7 0.160708025097847 -0.719621956348419 -1.40639531612396 -1.06811654567719 
-1.1350884437561 1.66668081283569 1.1256936788559 1.25421369075775 
0.253248482942581 -1.74103176593781
 8 0.667118489742279 -1.24981999397278 -0.339997321367264 -1.31989324092865 
-1.1840158700943 0.782531380653381 0.105011254549026 -0.0866925865411758 
-1.45805478096008 1.15875089168549
 9 0.994588315486908 -0.0332518741488457 -0.371460795402527 0.912795424461365 
-0.269466400146484 0.919871032238007 0.00894793402403593 -0.834297955036163 
0.94405472278595 -0.148105189204216
 10 -1.1438729763031 -0.965741157531738 -1.31561136245728 0.343743920326233 
-0.0547667443752289 -0.280742853879929 -1.33415591716766 0.933982610702515 
0.149589493870735 -1.33108854293823

which is in fact contains data from other files. In particular, the second
column is just the file oct-lhS0vw (line 1). So line 7 just overrides
plot line 1. (That explains dissapearing plot.)

address@hidden tmp]$ cat oct-lhS0vw
# name: /tmp/oct-lhS0vw
# type: matrix
# rows: 10
# columns: 2
 1 -0.570101022720337
 2 -1.49068665504456
 3 1.5434103012085
 4 2.71550989151001
 5 0.931000828742981
 6 -2.40403008460999
 7 0.160708025097847
 8 0.667118489742279
 9 0.994588315486908
 10 -1.1438729763031

---

Hope it is of some help. 

Dmitri.




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]