Bug#805295: [Pkg-octave-devel] Bug#805295: Bug#805295: octave: Plot to file without X display does not work
Control: tags -1 fixed-upstream * Rafael Laboissiere [2015-11-18 17:38]: Control: tags -1 confirmed upstream * Mike Miller [2015-11-18 05:24]: [snip] Upstream bug report for fixing interaction with gnuplot v5 is at https://savannah.gnu.org/bugs/?42838. This bug is fixed upstream: http://hg.savannah.gnu.org/hgweb/octave/rev/c7d881aec36c Rafael
Bug#805295: [Pkg-octave-devel] Bug#805295: octave: Plot to file without X display does not work
Control: tags -1 confirmed upstream * Mike Miller [2015-11-18 05:24]: On Mon, Nov 16, 2015 at 18:43:46 +0100, Djalil Chafai wrote: consider the following code stored in file plotest.m # begin graphics_toolkit('gnuplot') set(0, 'defaultfigurevisible', 'off'); plot(sin(1:100)); print("plotest.jpg", "-djpg") # end bash> export DISPLAY= bash> octave plotest.m The image file plotest.jpg contains a fully black figure. It should not. Agreed, this is due to an interaction between Octave and gnuplot v5. [snip] Upstream bug report for fixing interaction with gnuplot v5 is at https://savannah.gnu.org/bugs/?42838. Thanks for the replay, Mike. I am hereby tagging this bug report accordingly. Rafael
Bug#805295: octave: Plot to file without X display does not work
On Mon, Nov 16, 2015 at 18:43:46 +0100, Djalil Chafai wrote: > consider the following code stored in file plotest.m > > # begin > graphics_toolkit('gnuplot') > set(0, 'defaultfigurevisible', 'off'); > plot(sin(1:100)); > print("plotest.jpg", "-djpg") > # end > > bash> export DISPLAY= > bash> octave plotest.m > > The image file plotest.jpg contains a fully black figure. It should not. Agreed, this is due to an interaction between Octave and gnuplot v5. Something different about gnuplot 5 causes the black fill area to be drawn over all figures. Since gnuplot is the only available toolkit when DISPLAY is not set, there are a couple of (Debian-specific) workarounds to use gnuplot v4: * uninstall gnuplot5, gnuplot5-qt, etc. packages * use update-alternatives to set default gnuplot to be gnuplot v4 * add "gnuplot_binary('gnuplot4')" to plotest.m Another alternative is to use an X display, even a fake one if necessary, with Xvnc or Xvfb for example. $ sed -i /graphics_toolkit/d plotest.m $ xvfb-run octave plotest.m Upstream bug report for fixing interaction with gnuplot v5 is at https://savannah.gnu.org/bugs/?42838. -- mike
Bug#805295: octave: Plot to file without X display does not work
Package: octave Version: 4.0.0-5+b1 Severity: normal Dear Maintainer, consider the following code stored in file plotest.m # begin graphics_toolkit('gnuplot') set(0, 'defaultfigurevisible', 'off'); plot(sin(1:100)); print("plotest.jpg", "-djpg") # end bash> export DISPLAY= bash> octave plotest.m The image file plotest.jpg contains a fully black figure. It should not. Best wishes. -- System Information: Debian Release: 8.1 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages octave depends on: ii libamd2.3.11:4.2.1-3 ii libarpack2 3.1.5-3 ii libasound2 1.0.28-1 ii libblas3 [libblas.so.3]1.2.20110419-10 ii libc6 2.19-18 ii libcamd2.3.1 1:4.2.1-3 ii libccolamd2.8.01:4.2.1-3 ii libcholmod2.1.21:4.2.1-3 ii libcolamd2.8.0 1:4.2.1-3 ii libcxsparse3.1.2 1:4.2.1-3 ii libfftw3-double3 3.3.4-2 ii libfftw3-single3 3.3.4-2 ii libfltk-gl1.3 1.3.3-3 ii libfltk1.3 1.3.3-3 ii libfontconfig1 2.11.0-6.3 ii libfreetype6 2.5.2-3 ii libgcc11:4.9.2-10 ii libgl1-mesa-glx [libgl1] 10.6.3-1 ii libglpk36 4.55-1 ii libglu1-mesa [libglu1] 9.0.0-2 ii libgomp1 4.9.2-10 ii libgraphicsmagick++-q16-12 1.3.23-1 ii libgraphicsmagick-q16-31.3.21-4 ii liblapack3 [liblapack.so.3]3.5.0-4 ii liboctave3v5 4.0.0-5+b1 ii libopenblas-base [liblapack.so.3] 0.2.12-1 ii libosmesa6 10.6.3-1 ii libportaudio2 19+svn20140130-1 ii libqhull6 2012.1-5 ii libqrupdate1 1.1.2-1 ii libqscintilla2-12v52.9+dfsg-9 ii libqt4-network 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 ii libqt4-opengl 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 ii libqtcore4 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 ii libqtgui4 4:4.8.6+git64-g5dc8b2b+dfsg-3+deb8u1 ii libsndfile11.0.25-9.1 ii libstdc++6 5.2.1-22 ii libumfpack5.6.21:4.2.1-3 ii libx11-6 2:1.6.2-3 ii octave-common 4.0.0-5 ii texinfo5.2.0.dfsg.1-6 Versions of packages octave recommends: ii default-jre-headless 2:1.7-52 ii gnuplot-x11 4.6.6-2 ii libopenblas-base 0.2.12-1 ii octave-info 3.8.2-4 ii pstoedit 3.62-2+b1 Versions of packages octave suggests: ii octave-doc 3.8.2-4 pn octave-htmldoc -- no debconf information