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

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

[Octave-bug-tracker] [bug #31161] image() opens gnuplot despite image_vi


From: Andreas Weber
Subject: [Octave-bug-tracker] [bug #31161] image() opens gnuplot despite image_viewer("xloadimage %s")
Date: Wed, 29 Sep 2010 05:56:32 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.11) Gecko/20100720 Iceweasel/3.5.11 (like Firefox/3.5.11)

URL:
  <http://savannah.gnu.org/bugs/?31161>

                 Summary: image() opens gnuplot despite
image_viewer("xloadimage %s")
                 Project: GNU Octave
            Submitted by: andy1978
            Submitted on: Mi 29 Sep 2010 05:56:31 GMT
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.52
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Debian squeeze, Linux version 2.6.32-5-amd64 (Debian 2.6.32-20)
(address@hidden) (gcc version 4.3.5 (Debian 4.3.5-2) ) #1 SMP Thu Aug 12
13:01:50 UTC 2010

fresh build (28.9.2010) from the mercurial version
http://www.octave.org/hg/octave

GNU Octave, version 3.3.52+

HowTo reproduce:
octave -q
image_viewer("xloadimage %s")
image(rand(100)*100)

this opens a gnuplot windows with title "Figure 1" and the axes scaled from
1..100 (not expected) and the expected xloadimage windows.

Looking deeper into /usr/local/share/octave/3.3.52+/m/image/image.m
I see that
  [ax, varargin, nargin] = __plt_get_axis_arg__ ("image", varargin{:});
opens the gnuplot window. I set a "keyboard" before and after the line. After
the first "return" the gnuplot windows pops up.

by the way:
function __img_via_file__ in image_viewer.m
calls "status = system (sprintf ("( %s && %s) > /dev/null 2>&1 &", command,
rm));"
but because the command is run in background (the last &), status always
equals to 0 so the error message "image_viewer: the image viewing command
failed" is never shown.


HowTo reproduce:
octave -q
octave:1> image_viewer("this_is_no_valid_command %s")
octave:2> image(rand(200)*100)
octave:3>


Opens an empty (only axes) gnuplot windows but I think it is intended, that
the error message above should be shown instead.

best regards, Andy





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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