octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #35391] available_graphics_toolkits lists gnup


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #35391] available_graphics_toolkits lists gnuplot, although not there
Date: Sat, 06 Oct 2012 17:12:50 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4

Update of bug #35391 (project octave):

                Severity:              3 - Normal => 1 - Wish               
                 Release:                   3.6.0 => dev                    
        Operating System:               GNU/Linux => Any                    

    _______________________________________________________

Follow-up Comment #3:

Confirmed, Octave errors very badly if running gnuplot fails to run. For most
typical installations, gnuplot will always be installed along with Octave, so
I'm lowering the severity. Here is the output for me if the gnuplot executable
is not found at runtime:


octave:1> plot([1:10])
error: popen2: popen2 (child): unable to start process -- No such file or
directory
error: called from:
error:  
/opt/gnu/octave/share/octave/3.7.0+/m/plot/private/__gnuplot_open_stream__.m
at line 30, column 44
error:   /opt/gnu/octave/share/octave/3.7.0+/m/plot/__gnuplot_drawnow__.m at
line 72, column 19
sh: 1: gnuplot: not found
error: `unset' undefined near line 8 column 1
warning: broken pipe
warning: broken pipe
warning: broken pipe
warning: broken pipe
warning: broken pipe


Something should be fixed here, but what should the preferred behavior be? One
of these two:

1) Octave detects gnuplot doesn't exist and causes the gnuplot backend to
disappear, something like:


octave:1> available_graphics_toolkits
ans = {}(0x0)
octave:2> graphics_toolkit
ans = 
octave:3> plot([1:10])
error: unable to plot, no graphics toolkit is available


2) Octave still allows gnuplot backend to be selected but handle the missing
executable case more gracefully:


octave:1> graphics_toolkit
ans = gnuplot
octave:2> plot([1:10])
error: unable to plot, gnuplot program not found


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35391>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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