Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了linux – 任何图形绘图工具都优于GNU绘图?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我已经使用了GNU-plot很长一段时间,我不喜欢它产生的图形质量. 我很佩服我们可以轻松地在gnu-plot中绘制图形,但我希望结果图表在质量方面更好.例如:线条的粗细,颜色质量等. 那么是否有任何工具可以保留GNU PLOT的易用性,但却消除了质量问题? [I like the graph that excel produces, but unfortunately its not on Li
我已经使用了GNU-plot很长一段时间,我不喜欢它产生的图形质量.

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

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

解决方法

如果你想要另一个工具而不是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获得的更好.

大佬总结

以上是大佬教程为你收集整理的linux – 任何图形绘图工具都优于GNU绘图?全部内容,希望文章能够帮你解决linux – 任何图形绘图工具都优于GNU绘图?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。