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


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

Re: Can I use the same gnuplot script file to plot different data files?

Newsgroups comp.graphics.apps.gnuplot
Date 2018-11-21 03:40 -0800
References <1123688616.067028.222910@o13g2000cwo.googlegroups.com> <ec6e2983-99a2-4a40-9a1f-51b8760c8fc9@googlegroups.com>
Message-ID <8392b610-487d-4688-ab1c-0cc15de51cc5@googlegroups.com> (permalink)
Subject Re: Can I use the same gnuplot script file to plot different data files?
From srishtinagu19@gmail.com

Show all headers | View raw


On Wednesday, November 21, 2018 at 12:52:47 PM UTC+5:30, srisht...@gmail.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 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.

I am using : $gnuplot scriptname from terminal shell and also $load scriptname
but it is not working either of the ways.. What should I do ?

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


Thread

Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-20 23:22 -0800
  Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 11:53 +0100
  Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 03:40 -0800
    Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 14:23 +0100
      Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 06:03 -0800
        Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 19:19 +0100
          Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 22:00 -0800
            Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 22:12 -0800
              Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-22 11:16 +0100
                Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-22 02:28 -0800
                Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-22 02:44 -0800
                Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-23 01:34 -0800
                Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-24 22:47 -0800
                Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-25 08:52 -0800

csiph-web