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.68.233.69 with SMTP id tu5mr2033523pbc.6.1334328448290;
        Fri, 13 Apr 2012 07:47:28 -0700 (PDT)
Path: r9ni51858pbh.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.gwdg.de!.POSTED!not-for-mail
From: Christoph Bersch <use...@bersch.net>
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: How to use same plot script for Gnuplot of multiple files.
Date: Fri, 13 Apr 2012 16:47:27 +0200
Organization: GWDG, Goettingen
Lines: 13
Message-ID: <jm9e9v$cbk$1@gwdu112.gwdg.de>
References: <a59d08e5-8be4-4d1b-aa6e-38196abb2216@kn16g2000pbb.googlegroups.com>
NNTP-Posting-Host: mpl1136.mpl.mpg.de
Mime-Version: 1.0
X-Trace: gwdu112.gwdg.de 1334328447 12660 141.5.32.136 (13 Apr 2012 14:47:27 GMT)
X-Complaints-To: news@gwdg.de
NNTP-Posting-Date: Fri, 13 Apr 2012 14:47:27 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20120317 Icedove/3.0.11
In-Reply-To: <a59d08e5-8be4-4d1b-aa6e-38196abb2216@kn16g2000pbb.googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

On 13.04.2012 16:27, Sudip Roy wrote:
> 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?

gnuplot -e"infile='input.dat';outfile='output.eps';" script.gp

Christoph