Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242456 - sci-mathematics/octave - gnuplot communication results in wrong data displayed
Summary: sci-mathematics/octave - gnuplot communication results in wrong data displayed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 09:53 UTC by Arrigo Marchiori
Modified: 2010-06-24 17:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arrigo Marchiori 2008-10-17 09:53:57 UTC
The data plotted by Octave is sometimes not correctly shown by Gnuplot.
First plot goes ok. If I replot the same data, wrong data is displayed instead.

I tried to rebuild both Octave and Gnuplot, but the problem remains.

Reproducible: Always

Steps to Reproduce:
1.run octave
2.enter the following commands:
  x = [0:100];
  y = sin(x);
  plot(x, y)
3.data is displayed correctly.
4.enter again the plot command:
  plot(x, y)
5.wrong data is shown by gnuplot; the octave window shows a warning message:  
  Warning: empty y range [0:0], adjusting to [-1:1]




Packages:
sci-mathematics/octave-2.1.73
sci-visualization/gnuplot-4.2.3-r2


emerge --info:

Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.50GHz
Timestamp of tree: Fri, 17 Oct 2008 06:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo  ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.mcs.anl.gov/pub/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de it zh zh_TW"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi aiglx alsa amr apache2 arts audiofile bash-completion bcmath berkdb blas bluetooth bzip2 cairo calendar cdparanoia cdr cjk cli cracklib crypt cups curl dbus dga dio doc dri dts dv dvb dvd dvdr dvdread emacs encode exif expat ffmpeg fftw firefox flac flash foomaticdb fortran ftp gd gdbm gif glut gmp gnutls gpm gtk gtk2 gtkhtml hal iconv icq ieee1394 imagemagick imap imlib immqt-bc ipv6 isdnlog jabber jadetex java javascript jpeg jpeg2k kde kqemu ladspa lash ldap leim lesstif libcaca libwww lzo mad maildir matroska mbox mcal midi mikmod mime ming mmap mmx mng motif mozdevelop mp3 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin ntfs offensive ogg openal opengl openmp osc oscar oss pam pcmcia pcntl pcre pda pdf perl php plotutils png pop portaudio posix ppds pppd python qt3 qt4 quicktime readline real reflection samba sdl session sharedmem shorten slang sndfile sockets socks5 sound sox speex spell spl sqlite sse sse2 ssl startup-notification svg symlink sysfs sysvipc tcl tcpd theora threads tidy tiff tk tokenizer truetype unicode usb v4l vcd videos vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xcomposite xface xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xscreensaver xsl xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de it zh zh_TW" USERLAND="GNU" VIDEO_CARDS="dummy fbdev i810 vesa vga v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christian Faulhammer (RETIRED) gentoo-dev 2008-10-18 19:01:44 UTC
Can you somewho extract the generated Gnuplot code from Octave?
Comment 2 Arrigo Marchiori 2008-10-19 08:29:51 UTC
(In reply to comment #1)
> Can you somewho extract the generated Gnuplot code from Octave?

Ok, that's what I've done (transcripts follow):

1. run octave
2. enter the commands:
   gnuplot_binary = "cat"
   x = [0:100];
   y = sin(x);
   plot(x, y)
3. octave shows:
 set data style lines
 set nologscale
 set nopolar
 pl '/tmp/oct-wvb00G' u 1:2 t "line 1"
4. enter the command:
   plot(x, t)
5. octave shows:
 set nologscale
 set nopolar
 pl '/tmp/oct-0LGsRp' u 1:2 t "line 1"
6. open gnuplot and enter the first commands. Each command issues a warning but, in the end, a window is displayed, showing a nice sine wave.
7. in the same gnuplot session, enter the second set of commands. Gnuplot complains with warning at the "set" commands, and then displays the wrong data: a flat line, together with the warning message about the y range.

The two data files that Octave wants to feed into gnuplot contain the same data except the very first line, that is a comment.

$ diff /tmp/oct-wvb00G /tmp/oct-0LGsRp
1c1
< # name: /tmp/oct-wvb00G
---
> # name: /tmp/oct-0LGsRp
$

---- Transcript of octave session ----
octave:1> gnuplot_binary = "cat"
gnuplot_binary = cat
octave:2> x = [0:100];
octave:3>   y = sin(x);
octave:4>   plot(x, y)
set data style lines
set nologscale
set nopolar
pl '/tmp/oct-wvb00G' u 1:2 t "line 1"
octave:5>   plot(x, y)
set nologscale
set nopolar
pl '/tmp/oct-0LGsRp' u 1:2 t "line 1"
octave:6> 

---- Transcript of gnuplot session ----
gnuplot> set data style lines
             ^
         warning: deprecated syntax, use "set style data"
gnuplot> set nologscale
             ^
         warning: deprecated syntax, use "unset"
gnuplot> set nopolar
             ^
         warning: deprecated syntax, use "unset"
gnuplot> pl '/tmp/oct-wvb00G' u 1:2 t "line 1"
gnuplot> set nologscale
             ^
         warning: deprecated syntax, use "unset"
gnuplot> set nopolar
             ^
         warning: deprecated syntax, use "unset"
gnuplot> pl '/tmp/oct-0LGsRp' u 1:2 t "line 1"
Warning: empty y range [0:0], adjusting to [-1:1]
gnuplot>

Thank you for your help!
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-10-19 13:38:39 UTC
Have you tried if octave-3* works for you? It has a much
improved interface to gnuplot and I recommend that you give
it a try. I will probably try to move octave-3* into stable
sometime in the not too far future, but there are a lot of 
dependencies that need to go stable first hence this will 
take some time.

Best,
Markus 
Comment 4 Arrigo Marchiori 2008-10-19 16:25:27 UTC
(In reply to comment #3)
> Have you tried if octave-3* works for you? 

I just tested it. It seems to be working fine!

In order to compile it, though, I had to unmask sci-mathematics/glpk and disable the "mysql" USE flag for it, otherwise it didn't compile. I can post another bug report for that, if you wish.

Thank you for your help!
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2008-10-20 14:31:46 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Have you tried if octave-3* works for you? 
> 
> I just tested it. It seems to be working fine!

Good!

> 
> In order to compile it, though, I had to unmask sci-mathematics/glpk and
> disable the "mysql" USE flag for it, otherwise it didn't compile. I can post
> another bug report for that, if you wish.
> 

Please do (if there isn't one already) so we can keep track of it.
Thanks in advance.

Best,
Markus



Comment 6 Arrigo Marchiori 2008-10-20 20:31:41 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > (In reply to comment #3)
> > > Have you tried if octave-3* works for you? 
> > 
> > I just tested it. It seems to be working fine!
> 
> Good!

Yes: now I can work again with Octave!

The problem is not fixed, technically speaking... but I'm happy with this solution :-)

> > 
> > In order to compile it, though, I had to unmask sci-mathematics/glpk and
> > disable the "mysql" USE flag for it, otherwise it didn't compile. I can post
> > another bug report for that, if you wish.
> > 
> 
> Please do (if there isn't one already) so we can keep track of it.

Well... it didn't work yesterday but it worked today. :-$ So, nothing to report about that. Anyway, it was /usr/include/mysql/my_global.h pointing to a non-existant include file <asm/atomic.h>. But, I repeat, it worked for me just now.

Thank you again!
Comment 7 Martin Mokrejš 2009-01-07 19:02:10 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > Have you tried if octave-3* works for you? 
> > > 
> > > I just tested it. It seems to be working fine!
> > 
> > Good!
> 
> Yes: now I can work again with Octave!
> 
> The problem is not fixed, technically speaking... but I'm happy with this
> solution :-)
> 
> > > 
> > > In order to compile it, though, I had to unmask sci-mathematics/glpk and
> > > disable the "mysql" USE flag for it, otherwise it didn't compile. I can post
> > > another bug report for that, if you wish.
> > > 
> > 
> > Please do (if there isn't one already) so we can keep track of it.
> 
> Well... it didn't work yesterday but it worked today. :-$ So, nothing to report
> about that. Anyway, it was /usr/include/mysql/my_global.h pointing to a
> non-existant include file <asm/atomic.h>. But, I repeat, it worked for me just
> now.
> 

The mysql clash reported under bug #254136.
Comment 8 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-24 17:30:48 UTC
octave-2 bug which we do not care anymore.