Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ethan A Merritt Newsgroups: comp.graphics.apps.gnuplot Subject: Re: sandbox & gnuplot Date: Wed, 19 Apr 2017 12:48:58 -0700 Organization: gnuplot development Lines: 62 Message-ID: References: <45e334b8-4847-4648-a345-401994636fef@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Wed, 19 Apr 2017 19:45:53 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="5c2055d257cdfaa6667456d04826020c"; logging-data="6867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fLaS5PaRd0cCtrcBsqt/K" User-Agent: KNode/4.14.5 Cancel-Lock: sha1:aafOlMJJrCE8rYDxTHpYKg0h7r4= Xref: csiph.com comp.graphics.apps.gnuplot:3629 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