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

Newsgroups comp.graphics.apps.gnuplot
Date 2021-07-08 07:30 -0700
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>

Show all headers | 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