Gnuplot Linux CLI是否将低质量图像与Windows桌面下Gnuplot生成的图像进行对比?
我从CLI在Linux上使用Gnuplot:我发现与windows下由Gnuplot生成的图像质量相比,图像质量非常低,如何设置Gnuplot Linux以在windows中生成相同的图像质量Gnuplot Linux CLI是否将低质量图像与Windows桌面下Gnuplot生成的图像进行对比?,gnuplot,gnuplot-iostream,Gnuplot,Gnuplot Iostream,我从CLI在Linux上使用Gnuplot:我发现与windows下由Gnuplot生成的图像质量相比,图像质量非常低,如何设置Gnuplot Linux以在windows中生成相同的图像质量 G N U P L O T Version 4.6 patchlevel 2 last modified 2013-03-14 Build System: Linux x86_64 Copyright (C) 1986-1993, 1998, 2004, 2007-2013 [![enter i
G N U P L O T
Version 4.6 patchlevel 2 last modified 2013-03-14
Build System: Linux x86_64
Copyright (C) 1986-1993, 1998, 2004, 2007-2013
[![enter image description here][1]][1]Thomas Williams, Colin Kelley[![enter image description here][1]][1] and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
至少有3个原因,可能更多: 1) 从使用的线条颜色顺序判断,查询顶部的图像似乎是由gnuplot版本5创建的。底部的图像(这是您正在抱怨的图像吗?)来自较旧版本的gnuplot 2) 顶部的“好”图像看起来是使用cairo图形终端之一创建的,而底部的“坏”图像看起来像是来自x11的屏幕截图 3) “好”图像是使用一种打印样式(带标签的轮廓)创建的,这种打印样式在用于“坏”打印的较旧gnuplot版本中不存在。“坏”图像是使用带有点的打印样式
创建的,这对于等高线打印或曲面来说是个糟糕的主意
您可以做什么:
1) 安装更新版本的gnuplot。目前的版本是5.2.8
2) 使用更高分辨率的终端(我建议set term qt
或set term wxt
)
3) 使用轮廓图样式和线条
以及和标签
,创建“良好”图形,我认为这是从在线演示集合中的第5个示例图中获取的
L
我在gunplot中使用了相同的版本,在windows中,图像质量是100%完美的,但在Linux中,使用相同的版本,图像质量非常差,令人沮丧。我不知道是什么原因!您所附的两个图形显然是通过向不同版本的程序发出不同的命令而生成的。您尚未显示这两组命令。
inu Centos 7 Gnome
G N U P L O T Version 5.2 patchlevel 8 last modified 2019-12-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2019 Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h')
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400
# set output 'surface1.4.png'
set grid nopolar
set grid xtics nomxtics ytics nomytics noztics nomztics nortics nomrtics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault lt 0 linecolor 0 linewidth 0.500, lt 0 linecolor 0 linewidth 0.500
set style increment default
set samples 21, 21
set isosamples 11, 11
set style data lines
set title "3D surface from a function"
set xlabel "X axis"
set xlabel offset character -3, -2, 0 font "" textcolor lt -1 norotate
set xrange [ -10.0000 : 10.0000 ] noreverse nowriteback
set x2range [ * : * ] noreverse writeback
set ylabel "Y axis"
set ylabel offset character 3, -2, 0 font "" textcolor lt -1 rotate
set yrange [ -10.0000 : 10.0000 ] noreverse nowriteback
set y2range [ * : * ] noreverse writeback
set zlabel "Z axis"
set zlabel offset character -5, 0, 0 font "" textcolor lt -1 norotate
set zrange [ * : * ] noreverse writeback
set cbrange [ * : * ] noreverse writeback
set rrange [ * : * ] noreverse writeback
## Last datafile plotted: "$grid"
splot x**2+y**2, x**2-y**2, x*y
The associated output with bad quality [see below attached ][1]
[1]: https://i.stack.imgur.com/GhbUC.png