Atc*_*old 10 themes gnuplot configuration-files demo
好吧,我知道这个问题可能听起来很傻,但是我无法找到为什么来自gnuplot官方网站的演示(你可以看到下图中左侧的一个例子)看起来与我得到的不同(并且更好)在我的机器上(在wxt终端上)运行相同的演示.
是否有指定主题的配置文件(类似于a ~/.gnuplotrc)?如果是这样,有谁知道这里使用了什么主题?
这里有一个图像,您可以在其中比较网站和本地制造的版本

此外,只是一个偏离主题的好奇心,是否有人认真使用gnuplot,或者它基本上用于绘制简单的批量图和Octave?
and*_*ras 13
制作演示的人(很可能是Ethan Merritt)很可能已经定义了他/她自己的一组默认线条颜色,这些颜色会反映在演示图像中.你可以自己做(见help set linetype).gnuplot电子邮件列表中的示例:
# Ethan A Merritt - my preference for gnuplot colors
# 2 3 4 5 6 8 are borrowed from the colors_podo set
#
set linetype 1 lc rgb "dark-violet" lw 1
set linetype 2 lc rgb "#009e73" lw 1
set linetype 3 lc rgb "#56b4e9" lw 1
set linetype 4 lc rgb "#e69f00" lw 1
set linetype 5 lc rgb "#f0e442" lw 1
set linetype 6 lc rgb "#0072b2" lw 1
set linetype 7 lc rgb "#e51e10" lw 1
set linetype 8 lc rgb "black" lw 1
set linetype 9 lc rgb "gray50" lw 1
set linetype cycle 9
Run Code Online (Sandbox Code Playgroud)
没有内置的gnuplot主题,只有一组更改颜色的设置.
是的,我确实认真使用gnuplot!我将它用于简单的绘图和科学出版.
小智 5
https://github.com/Gnuplotting/gnuplot-palettes和https://github.com/aschn/gnuplot-colorbrewer提供了很好的调色板
这些定义了可以显式使用的线型,但是通过一些shell转义技巧,您可以使它们覆盖默认的线型,在.gnuplot中使用类似的方式:
palettefile(n) = sprintf("<sed 's/set style line/set linetype/' /path/to/gnuplot-gnuplot-palettes/%s.pal", n)
load palettefile("rdbu")
Run Code Online (Sandbox Code Playgroud)
然后load palettefile(palettename),无论何时想要更改默认调色板,都可以调用(其中palettename是调色板存储库中可用的调用库之一),因此非常接近上面提到的主题概念.
小智 5
看起来您使用的是旧版本 - 演示可能是用版本 5 制作的,它有一个新的默认调色板。您的颜色看起来像第 4 版或更低版本。
新版本具有许多新的、更强大的功能。新的 cariolatex 终端可以立即生成非常好的出版质量图,或者只需很少的调整。