delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/08/15:49:44

X-Spam-Check-By: sourceware.org
From: "John W. Eaton" <jwe AT bevo DOT che DOT wisc DOT edu>
MIME-Version: 1.0
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: <Pine.GSO.4.63.0512081000100.1469@slinky.cs.nyu.edu>
References: <20051208144128 DOT 44289 DOT qmail AT web51511 DOT mail DOT yahoo DOT com> <Pine DOT GSO DOT 4 DOT 63 DOT 0512081000100 DOT 1469 AT slinky DOT cs DOT nyu DOT edu>
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
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <http://cygwin.com/ml/cygwin/2005-12/msg00339.html> (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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019