X-Spam-Check-By: sourceware.org From: "John W. Eaton" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17304.40020.19371.976990@frodo.bogus.domain> Date: Thu, 8 Dec 2005 15:49:24 -0500 To: cygwin AT cygwin DOT com Subject: Re: gnuplot dependency in octave In-Reply-To: References: <20051208144128 DOT 44289 DOT qmail AT web51511 DOT mail DOT yahoo DOT com> X-CAE-MailScanner-Information: Please contact security AT engr DOT wisc DOT edu if this message contains a virus or has been corrupted in delivery. X-CAE-MailScanner: Found to be clean (benji) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 8-Dec-2005, Igor Pechtchanski wrote: | What about (which | fails gracefully if gnuplot isn't installed)? Or does octave-forge | already "do the right thing" (tm) with respect to a missing gnuplot (i.e., | print out a meaningful error message, such as "plotting disabled since | gnuplot is not installed -- please install it to plot")? Here is what Octave does if it tries to run a nonexistent gnuplot: octave:1> gnuplot_binary = "foobar" gnuplot_binary = foobar octave:2> sombrero (41) octave:3> sh: foobar: command not found warning: connection to external plotter (pid = 25466) lost -- warning: please try your plot command(s) again warning: broken pipe -- some output may be lost So the user gets some idea that there is a problem, but I would bet that this will confuse a lot of people. My preference would be for it to work out of the box, but that is not really the case yet, even if you have the gnuplot package installed. The problem is that the Cygwin version of gnuplot requires X to put a pretty plot on the screen but Octave does not require X to start. So if you run Octave in a Cygwin terminal (no X) then try a plot command, Octave will think that the plot command succeeded, but nothing will appear on the screen. Maybe gnuplot should be giving an error when the terminal is set to X11 but the X server is not available, but it does not. The gnuplot sources already have a way to open a native Windows window for plotting, but that code is not used for the Cygwin version of gnuplot (which uses X instead of the native Windows terminal driver). It would be really sweet if the Cygwin gnuplot could be made to use the native Windows terminal driver. jwe -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/