Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to use same plot script for Gnuplot of multiple files.

Received: by 10.66.79.36 with SMTP id g4mr3792100pax.38.1350352596278;
        Mon, 15 Oct 2012 18:56:36 -0700 (PDT)
MIME-Version: 1.0
Path: s9ni8410pbb.0!nntp.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!news.xs4all.nl!not-for-mail
Reply-To: "Alex van der Spek" <zd...@xs4all.nl>
From: "Alex van der Spek" <zd...@xs4all.nl>
Newsgroups: comp.graphics.apps.gnuplot
References: <a59d08e5-8be4-4d1b-aa6e-38196abb2216@kn16g2000pbb.googlegroups.com> <jmahik$o82$1@dont-email.me> <b8e8a2d7-1a67-4226-a373-744eceb293d3@googlegroups.com>
Subject: Re: How to use same plot script for Gnuplot of multiple files.
Date: Thu, 11 Oct 2012 13:23:41 -0400
Organization: ZDoor
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646: Format=Flowed; Original
Lines: 63
Message-ID: <5077009f$0$6941$e4fe514c@news2.news.xs4all.nl>
NNTP-Posting-Host: 12.206.14.2
X-Trace: 1349976223 news2.news.xs4all.nl 6941 zdoor/12.206.14.2:44512
Bytes: 2541
X-Received-Bytes: 2679

your plot script  should contain command line substitution parameters ($0, 
$1 and so forth, maximum of 10) like so:

+++++
set out '$1'
plot '$0
+++++

then call the script with call from the gnuplot

call 'yourplotscript.gp' 'filetoplotfrom.dat' 'filetoplotto.eps'

Good luck,
Alex van der Spek


"sam" <samja...@gmail.com> wrote in message 
news:b8e8a2d7-1a67-4226-a373-744eceb293d3@googlegroups.com...
On Saturday, April 14, 2012 2:44:29 AM UTC+2, Michael wrote:
> 13.04.2012 21:27, Sudip Roy ?????:
>
> > I have 6000 files in same format. I have a plot script that can plot
>
> > the graph taking data from one single file abc.dat and saves the plot
>
> > in abc.eps file.
>
> >
>
> > Now I want to use the same plot script to plot for all the 6000 data
>
> > files into 6000 eps files. Is there any way/technique to pass the two
>
> > file names<input.dat>  and<output.eps>  into the same plot script as
>
> > command line arguments? Or in any other this can be done?
>
> >
>
> > Thanking you in advance.
>
> > Regards,
>
> > Sudip
>
>
>
>
>
> I have the similar problem with 100s of plots. I solve it with perl
>
> scripts that create gnuplot scripts for each data set. These gnuplot
>
> files are executing, then I have another perl script that creates LaTeX
>
> file, builds pdf and... report is done :)

That seems great but what is this perl script and how would be the second 
one?
please guide me .
Sama