我已经绘制了这个文件的数字矩阵
使用此代码
set encoding iso_8859_1
set term postscript eps enhanced color size 4.7in,4in
set xlabel "longitude"
set ylabel "latitude"
set output "test0.eps"
set size square
set title "Pheromones" font "Helvetica, 16"
set autoscale fix
set key
set yrange [:] reverse
set view map
splot 'pher-of-1365.txt' matrix with image
产生这个情节:
质量不差但线条模糊不清。
有没有办法提高图像中线条的清晰度?
此致
答案 0 :(得分:2)
使用可以尝试使用不同的plot
语句,并调整磅值以获得更清晰的图像。我在{4}不同的情况下使用了pdf
终端的脚本:
set terminal pdf size 12,12
set output "test0.pdf"
set encoding iso_8859_1
set xlabel "longitude"
set ylabel "latitude"
set size square
set format cb "%2.0t{/Symbol \327}10^{%L}"
set autoscale fix
unset key
set yrange [:] reverse
set view map
set multiplot layout 2,2
set title "plot with image"
splot 'pher-of-1365.txt' matrix with image
set title "plot with points pointtype 5 pointsize 0.45 palette"
splot 'pher-of-1365.txt' matrix with points pointtype 5 pointsize 0.45 palette
set title "plot with points pointtype 5 pointsize 0.25 palette"
splot 'pher-of-1365.txt' matrix with points pointtype 5 pointsize 0.25 palette
set title "plot with points pointtype 3 pointsize 1.25 palette"
splot 'pher-of-1365.txt' matrix with points pointtype 3 pointsize 1.25 palette
导致:
注意事项:
pointtype 5
(实心方块)。然后,调整pointsize
参数,您可以填充整个区域。请注意当我更改点的大小和类型时,底部面板上会发生什么。image
,因为它会自行解决问题,并填写绘图区域。