[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Gnuplot question
From: |
Thomas Weber |
Subject: |
Re: A Gnuplot question |
Date: |
Wed, 26 Nov 2008 22:04:21 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Nov 26, 2008 at 03:04:53PM -0500, Vic Norton wrote:
> I realize this is not an Octave question per se, but perhaps someone
> here can answer it.
>
> My question: How do you change directory in Gnuplot so that your
> working directory is the directory containing the calling script?
>
> I know how to do this in Octave:
> basedir = fileparts(mfilename("fullpath"));
> chdir(basedir);
> I know how to do it in Perl:
> use FindBin qw($Bin);
> chdir $Bin;
> But I don't know how to do it in Gnuplot.
help cd
which, btw, works in Octave as well
Thomas