微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

gnuplot线型不希望被改变

你能帮我吗? 我想要改变一种线型来点缀。 我使用这些comannds:

gnuplot> set terminal png size 750,210 nocrop butt font "/usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf" 8 gnuplot> set output "/root/data.png" gnuplot> set xdata time gnuplot> set timefmt "%Y-%m-%d" gnuplot> set format x "%b %d" gnuplot> set ylabel "item1" gnuplot> set y2label "item2" gnuplot> set y2tics gnuplot> set datafile separator "|" gnuplot> plot "/root/results.txt" using 1:2 title "item1" w lines lt 4,"/root/results.txt" using 1:3 title "item2" with lines

但我总是只得到洋红色线。 我已经使用了版本4.6 patchlevel 0.感谢您的答复。

如何使用systemD重新启动服务时,下来?

如何使用dpkg卸载上次安装的应用程序(最近安装的应用程序)?

PHP中不能禁用open_basedir限制

GitLab电子邮件不发送?

从linux服务器发送短信最简单的系统是什么?

有几种方法可以使用set命令更改线条颜色:

定义线条样式:

set style line 1 linetype 1 linecolor 7 set style line 2 linetype 1 linecolor rgb "#dd7700" plot x linestyle 1,x**2 linestyle 2

您必须明确指定使用哪种线条样式。

如果不指定任何内容,请选择并增加线条样式而不是线条类型 :

set style line 1 linetype 1 linecolor 7 set style line 2 linetype 1 linecolor rgb "#dd7700" set style increment user plot x,x**2

重新定义认线路类型 (在版本4.6.0中引入):

set linetype 1 linecolor 7 set linetype 2 linetype 1 linecolor rgb "magenta" plot x,x**2

请注意,与线条样式不同,通过set linetype重新定义是持久的; 他们不受reset影响。 要重置它们,您必须使用set linetype 1 default 。

所以一个最小的绘图脚本可能看起来像:

reset set terminal pngcairo dashed monochrome set output "/root/data.png" set xdata time set timefmt "%Y-%m-%d" set format x "%b %d" set datafile separator "|" set style data lines plot "/root/results.txt" using 1:2 linetype 1,"" using 1:3 linetype 3

在X-11终端上,我不难改变线条颜色,但没有成功改变线条类型来包含虚线和/或虚线。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐