有gnuplot配置文件吗? [英] Is there a gnuplot configuration file?

查看:68
本文介绍了有gnuplot配置文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置gnuplot,以便在启动时始终使用逗号作为数据文件分隔符,并使用以下命令:

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 ","

不幸的是,似乎没有 .gnuplotrc 的概念在gnuplot中。至少我没有在手册页中找到任何内容,并且在这台机器上没有 strace ,所以我我自己看不到每次启动gnuplot时,我都讨厌键入命令。有人对此有好的解决方案吗?请注意,使用 load 不能解决我的问题:我仍然必须键入 load 命令。

Unfortunately, it looks like there's no concept of a .gnuplotrc in gnuplot. At least I didn't find anything in the man page, and I don't have strace on this machine so I cannot see by myself. I am tired of typing the command every time I fire up gnuplot. Does anybody have a good solution for this? Note that using load does not solve my issue: I would still have to type the load command.

推荐答案

实际上,有一个gnuplot启动文件:它称为.gnuplot,应该完全按照您的要求进行。有关详细信息,请尝试在交互式gnuplot会话中运行帮助启动

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开始-up



运行 gnuplot 时,它将查找要加载的初始化文件。该文件在Unix和AmigaOS系统上称为 .gnuplot ,在其他系统上称为 GNUPLOT.INI 。如果在当前目录中找不到此文件,则程序将在HOME目录(在AmigaOS,Atari(single)TOS,MS-DOS,Windows和OS / 2下,环境变量 GNUPLOT 应包含此目录的名称;在Windows NT上,如果未定义GNUPLOT,它将使用 USERPROFILE 。注意:如果在安装过程中定义了NOCWDRC,则 gnuplot 不会从当前目录中读取。

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.

如果找到了初始化文件, gnuplot 将在其中执行命令。这些可能是任何合法的 gnuplot 命令,但通常它们仅限于设置终端并定义常用的函数或变量。

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

这篇关于有gnuplot配置文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆