加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 任何图形绘图工具都优于GNU绘图?

发布时间:2020-12-14 01:52:33 所属栏目:Linux 来源:网络整理
导读:我已经使用了GNU-plot很长一段时间,我不喜欢它产生的图形质量. 我很佩服我们可以轻松地在gnu-plot中绘制图形,但我希望结果图表在质量方面更好.例如:线条的粗细,颜色质量等. 那么是否有任何工具可以保留GNU PLOT的易用性,但却消除了质量问题? [I like the g
我已经使用了GNU-plot很长一段时间,我不喜欢它产生的图形质量.

我很佩服我们可以轻松地在gnu-plot中绘制图形,但我希望结果图表在质量方面更好.例如:线条的粗细,颜色质量等.

那么是否有任何工具可以保留GNU PLOT的易用性,但却消除了质量问题?

[I like the graph that excel produces,but unfortunately its not on
Linux…]

解决方法

如果你想要另一个工具而不是gnuplot,那么你错误地使用它.我同意,默认颜色和设置看起来不那么漂亮,但您可以在定义文件中轻松调整它?/ .gnuplot

set macros
png="set terminal png size 1800,1800 crop enhanced font "/usr/share/fonts/truetype/times.ttf,30" dashlength 2; set termoption linewidth 3"
eps="set terminal postscript fontfile "/usr/share/fonts/truetype/times.ttf"; set termoption linewidth 3;

set style line 1 linecolor rgb '#de181f' linetype 1  # Red
set style line 2 linecolor rgb '#0060ae' linetype 1  # Blue
set style line 3 linecolor rgb '#228C22' linetype 1  # Forest green

set style line 4 linecolor rgb '#18ded7' linetype 1  # opposite Red
set style line 5 linecolor rgb '#ae4e00' linetype 1  # opposite Blue
set style line 6 linecolor rgb '#8c228c' linetype 1  # opposite Forest green

示例脚本:

@png
set output "output.png"
plot x ls 1,-x ls 2,x**3 ls 3

你已经拥有了相当不错的图表.稍微调整线宽和字体大小,你可以做得比用Excel获得的更好.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读