Friday, 24 August 2012

.gnuplot, the startup script for Gnuplot

I've been using Gnuplot for a long time but I've only now come across the appropriate way to execute a default script when the program runs. Just put your favourite commands in ~/.gnuplot and they'll be executed whenever Gnuplot starts. For example, my .gnuplot file starts with

set term x11
set style data lines

Note that typing reset restores the defaults and does not run .gnuplot again.

No comments:

Post a Comment