|
From: | Daniel J Sebald |
Subject: | Re: more mxe testing |
Date: | Fri, 22 Feb 2013 10:45:58 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 |
On 02/22/2013 08:01 AM, Ben Abbott wrote:
On Feb 22, 2013, at 8:30 AM, Mike Miller wrote:On Fri, Feb 22, 2013 at 8:14 AM, Ben Abbott wrote:On Feb 22, 2013, at 7:28 AM, Mike Miller wrote:octave:1> figure (1, "visible", false); octave:2> sombrero octave:3> drawnow ("windows", "/dev/null", false, "foo.gp") Does not return, there is no foo.gp file created. Ctrl-C 3 times exits Octave.My guess is that Octave isn't able to run gnuplot? From Octave's prompt, what is needed to run gnuplot from the command line? On *nix, I'd just ... system ("gnuplot") What is needed for Octave running via wine?Same, system ("gnuplot") works fine, gives me the gnuplot interactive shell, from which I can "plot sin(x)" fine, exit returns control back to Octave, no problems. -- mikeI assume the gnuplot is a windows/wine app? My guess is that the pipe between Octave and gnuplot isn't working properly. Ben
Hmm, I should have thought a bit more about that. The program probably freezes with the "sombrero" command and doesn't get to run the "drawnow()" command. That's the case, correct Mike?
Does Windows have something analogous to process IDs on linux? I think it does, something like Cntrl-Alt-Del, right? Can you open such a window, run the "sombrero" command and watch if a "gnuplot" process shows up in the list?
I'm trying to think of some way to create a real rudimentary plot that sends a minimal amount of data across the pipe.
It could be the pipe, but I'm also wondering if gnuplot might be crashing. (If it is, and Octave is freezing as a result, that's not very robust...but first must identify problem.) Could you run "gnuplot" (not via Octave) and try various things like:
set term 'windows' plot x set term 'qt' plot x set term 'x11' plot xI'm suggesting trying 'x11' even though it won't be present just to consider the case where Octave is mistakenly setting up the wrong terminal type.
Dan
[Prev in Thread] | Current Thread | [Next in Thread] |