X-Received: by 2002:a6b:b4cc:: with SMTP id d195mr3310776iof.39.1542784966748; Tue, 20 Nov 2018 23:22:46 -0800 (PST) X-Received: by 2002:aca:308d:: with SMTP id w135mr87030oiw.0.1542784966529; Tue, 20 Nov 2018 23:22:46 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!z5-v6no114245ite.0!news-out.google.com!v141ni51ita.0!nntp.google.com!z5-v6no114241ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 20 Nov 2018 23:22:46 -0800 (PST) In-Reply-To: <1123688616.067028.222910@o13g2000cwo.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=117.197.48.97; posting-account=QLJ3mAoAAABT4Plmu7vwBG2bcvTSTo_B NNTP-Posting-Host: 117.197.48.97 References: <1123688616.067028.222910@o13g2000cwo.googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Can I use the same gnuplot script file to plot different data files? From: srishtinagu19@gmail.com Injection-Date: Wed, 21 Nov 2018 07:22:46 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 40 Xref: csiph.com comp.graphics.apps.gnuplot:4082 On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote: > Hi, > > Suppose I have a few data files with the same format to plot, I have > the following script. But I have to change the last line for each data > file. Is there any way such that I can specify the file name as an > argument to gnuplot when I envoke this script file? > > Best wishes, > Peng > > set term postscript landscape enhanced color solid > set output "heat_map.eps" > set xlabel "X(um)" > set ylabel "Y(um)" > set view map > unset surface > set size ratio -1 > set pm3d > set palette mode RGB > set xtics rotate > set title "Error Map" > splot "heat_map.dat" using (-10+$1*5):(-10+$2*5):3 Hello , I just saw this topic, I am making a gnuplot script and want to know- How do we invoke the gnuplot script ? I am working with the following script below.. Do we have to keep a filename extension for using the script ? "" set terminal pdf set output "myplot.pdf" set contour set view map unset surface set cntrparam levels discrete 2.3,6.2,11.8 splot [0:360][0:0.9] "test1.dat" with lines "" Thank you.