Is there a gnuplot configuration file?

前端 未结 2 913
旧巷少年郎
旧巷少年郎 2020-12-11 02:06

I am trying to setup gnuplot so that at startup I always have the comma as datafile separator, with the following command:

set datafile separator ","         


        
2条回答
  •  無奈伤痛
    2020-12-11 02:35

    In fact, there is a gnuplot startup file: it's called .gnuplot, and should do exactly what you want. For details, try running help startup within an interactive gnuplot session.

    18 Start-up

    When gnuplot is run, it looks for an initialization file to load. This file is called .gnuplot on Unix and AmigaOS systems, and GNUPLOT.INI on other systems. If this file is not found in the current directory, the program will look for it in the HOME directory (under AmigaOS, Atari(single)TOS, MS-DOS, Windows and OS/2, the environment variable GNUPLOT should contain the name of this directory; on Windows NT, it will use USERPROFILE if GNUPLOT isn’t defined). Note: if NOCWDRC is defined during the installation, gnuplot will not read from the current directory.

    If the initialization file is found, gnuplot executes the commands in it. These may be any legal gnuplot commands, but typically they are limited to setting the terminal and defining frequently-used functions or variables.

    http://www.gnuplot.info/docs_4.2/gnuplot.html#x1-6900018

提交回复
热议问题