X-Received: by 2002:a24:2f0e:: with SMTP id j14mr3366472itj.14.1542809018237; Wed, 21 Nov 2018 06:03:38 -0800 (PST) X-Received: by 2002:a9d:da3:: with SMTP id 32mr121859ots.3.1542809017960; Wed, 21 Nov 2018 06:03:37 -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!q69no254005itb.0!news-out.google.com!v141ni88ita.0!nntp.google.com!z5-v6no252563ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Wed, 21 Nov 2018 06:03:37 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2405:204:a0aa:8c40:7f79:6956:1d7b:d363; posting-account=QLJ3mAoAAABT4Plmu7vwBG2bcvTSTo_B NNTP-Posting-Host: 2405:204:a0aa:8c40:7f79:6956:1d7b:d363 References: <1123688616.067028.222910@o13g2000cwo.googlegroups.com> <8392b610-487d-4688-ab1c-0cc15de51cc5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <738fc952-1faa-4c4a-a51a-7bda36f485d6@googlegroups.com> 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 14:03:38 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 72 Xref: csiph.com comp.graphics.apps.gnuplot:4087 On Wednesday, November 21, 2018 at 6:53:23 PM UTC+5:30, J=C3=B6rg Buchholz = wrote: > On 21.11.2018 12:40, srishtinagu19@gmail.com wrote: > > On Wednesday, November 21, 2018 at 12:52:47 PM UTC+5:30, srisht...@gmai= l.com wrote: > >> 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 dat= a > >>> 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 ,=20 > >> 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. > >=20 > > I am using : $gnuplot scriptname from terminal shell and also $load scr= iptname > > but it is not working either of the ways.. What should I do ? >=20 > If there is a error in your script and you use "gnuplot scriptname" from > the shell then you see often nothing. >=20 > From inside gnuplot, have first open gnuplot, you must use the following: >=20 > gnuplot> load 'scriptname' >=20 > There must be some quotes at the scriptname (' or "). >=20 > If there is an error in your script, or gnuplot can't find your script, > you get an error message. See "gnuplot> help load" >=20 > J=C3=B6rg Thanks a lot.. Its working with :gnuplot> load 'scriptname' I am writing greek letters but its not printing that letter. For that I am using-=20 gnuplot>set termoption enhanced gnuplot> set xlabel "{/Symbol d}" (I want to print delta) its giving me /Symbol d... What should I do ?