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


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

How to produce screenplot and pslatex-plot with one batch file

X-Received by 2002:a05:622a:11c3:: with SMTP id n3mr28520173qtk.211.1625754646539; Thu, 08 Jul 2021 07:30:46 -0700 (PDT)
X-Received by 2002:a25:8a:: with SMTP id 132mr1523246yba.67.1625754646258; Thu, 08 Jul 2021 07:30:46 -0700 (PDT)
Path csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!2.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Thu, 8 Jul 2021 07:30:46 -0700 (PDT)
Injection-Info google-groups.googlegroups.com; posting-host=2a02:a03f:eb28:9f00:55c5:cf8f:4da2:71e8; posting-account=6f4zEAoAAABcPGvJdTxtF_Mhoal-gK1d
NNTP-Posting-Host 2a02:a03f:eb28:9f00:55c5:cf8f:4da2:71e8
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <e95b190e-372c-43c2-832e-4ae317cbecddn@googlegroups.com> (permalink)
Subject How to produce screenplot and pslatex-plot with one batch file
From "hugocoolens@gmail.com" <hugocoolens@gmail.com>
Injection-Date Thu, 08 Jul 2021 14:30:46 +0000
Content-Type text/plain; charset="UTF-8"
Xref csiph.com comp.graphics.apps.gnuplot:4415

Show key headers only | View raw


I currently use Gnuplot as follows:
I write a batch-file myfile.gp with the following commands in comment
#set terminal pslatex size 25cm,17cm monochrome
#set output "fileforlatex.tex"

I first run the batch file to see if plot is OK on screen, like this
gnuplot <myfile.gp --persist
If the result seems OK, I edit the original batch file and remove the #
such that I have:
set terminal pslatex size 25cm,17cm monochrome
set output "fileforlatex.tex"

The I rerun Gnuplot:
gnuplot <myfile.gp 

I wonder whether it is possible to see the result on screen _and_ produce the fileforlatex.tex at the same time?

Here is a trivial example batch file: myfile.gp:
#set terminal pslatex size 25cm,17cm monochrome
#set output "fileforlatex.tex"
plot sin(x)
set output


kind regards,
Hugo  

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


Thread

How to produce screenplot and pslatex-plot with one batch file "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2021-07-08 07:30 -0700
  Re: How to produce screenplot and pslatex-plot with one batch file Gavin Buxton <gavinbuxton@gmail.com> - 2021-07-09 08:18 -0700
    Re: How to produce screenplot and pslatex-plot with one batch file "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2021-07-10 02:23 -0700
      Re: How to produce screenplot and pslatex-plot with one batch file Gavin Buxton <gavinbuxton@gmail.com> - 2021-07-10 08:07 -0700
        Re: How to produce screenplot and pslatex-plot with one batch file "hugocoolens@gmail.com" <hugocoolens@gmail.com> - 2021-07-13 04:53 -0700

csiph-web