Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3629

Re: sandbox & gnuplot

From Ethan A Merritt <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: sandbox & gnuplot
Date 2017-04-19 12:48 -0700
Organization gnuplot development
Message-ID <od8eph$6mj$1@dont-email.me> (permalink)
References <45e334b8-4847-4648-a345-401994636fef@googlegroups.com>

Show all headers | View raw


jose.lopez.herrera.s@gmail.com wrote:

> Hi all,
> 
> I have prepared with M.A. Herrada a simulation of his recent work with
> Jens Eggers (and colleagues) to be published in JFM. It is in my sandbox (
> http://basilisk.fr/sandbox/lopez/unsymshock.c ). However I have not been
> able to plot the graphics with gnuplot.
> 
> I do not know if what I describe below is related to this but
> when I run it in my own repository (make unsymshock.tst) it creates a
> 'plots' file in the corresponding directory that is automatically deleted
> when the simulation finish.
> 
> Shall I have to modify the Makefile or to add some 'set terminal... '
> stuff to the gnuplot part ?
> 
> /**
> ~~~gnuplot
> set terminal ....
> .....
> */
> 
> Cheers and thank in a advance !
> 
> Jose

No answer is possible without more information about what you are 
trying now that isn't working.
Please tell us the version of gnuplot you are using
and provide a sample of the input commands you are giving it.

...

I see this shell-script in your repository:
==================================================================
if ! gnuplot -e "batch=1; PNG=\"$PNG\"; set term $PNG enhanced font \",10\"; set macros;" \
    plots > /dev/null 2> gnuplot.log; then
    gawk -v test=`basename $PWD` '
    /line [0-9]+:/ {
      match ($0, "line ([0-9]+):(.*)", a);
      print test ".c:" a[1] ": warning: gnuplot:" a[2];
    }' < gnuplot.log
    rm -f gnuplot.log
    exit 1;
fi
==================================================================

1) Current gnuplot version is 5.0 (Jan 2015).
The syntax in the first line of the script suggests that it was written for
some older gnuplot version.

2) Input to gnuplot will indeed come from a file named "plots",
but without seeing the contents of such a file no further
analysis is possible. You say this file is deleted automatically.
In order to debug any problems you will have to prevent deletion
of this file so you can see what it contains.

3) If the "plots" input file does not explicitly redirect the plots
produced by gnuplot into a file, they will go to stdout.  Your script
sends it to /dev/null, so by default you will end up with nothing.

  Ethan

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

sandbox & gnuplot jose.lopez.herrera.s@gmail.com - 2017-04-19 09:27 -0700
  Re: sandbox & gnuplot Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-04-19 12:48 -0700

csiph-web