gpt4 book ai didi

configuration - 是否有 gnuplot 配置文件?

转载 作者:行者123 更新时间:2023-12-04 00:51:21 28 4
gpt4 key购买 nike

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

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

最佳答案

事实上,有一个 gnuplot 启动文件:它叫做 .gnuplot,它应该完全符合你的要求。有关详细信息,请尝试运行 help startup在交互式 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

关于configuration - 是否有 gnuplot 配置文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1200463/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com