gnuplot配置文件 [英] gnuplot configuration file

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

问题描述

不知道这是stackoverflow或超级用户的问题,但beta SU社区仍然太小,这样的具体问题,我猜。如果你觉得合适,请随意重定向。

Don't know if it's a question for stackoverflow or superuser, but the beta SU community is still too small for such specific questions, I guess. Feel free to redirect it if you see it fit.

我试图设置gnuplot,以便在启动时我总是有逗号作为datafile分隔符,用以下命令

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

不幸的是,它似乎在gnuplot没有一个.gnuplotrc的概念(至少,我没有找到任何东西在手册页,我没有strace在这台机器上,所以我自己看不到)。我厌倦了每次启动gnuplot时输入命令。有没有人有一个很好的解决方案?

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 ?

注意:load不能解决,我仍然需要键入load命令。

NB: load does not solve, I would still have to type the load command.

推荐答案

实际上,有一个gnuplot启动文件:它叫做.gnuplot,应该做你想要的。有关详细信息,请尝试在交互式gnuplot会话中运行 help startup

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(单)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天全站免登陆