2017-09-30 80 views
1

我试图使一个密度图的框架。我开始与如何在gnuplot中创建一个带边框的框架?

set terminal pngcairo size 400,400 enhanced 
set output 'test.png' 

set view map 
unset tics 
unset colorbox 
set size ratio 1 

set border 15 front lw 20 
#set border 15 back lw 20 

splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2) w pm3d notitle 

enter image description here

如果我使用front的边框看起来连续的,但它吃的阴谋的一部分。如果我使用back,它不再看起来像一个框架。

我该如何制作一个合适的框架,使其不在绘图区域?

回答

2

使用square选项为pngcairo终端的行结束可能有助于:

set terminal pngcairo size 400,400 enhanced square 
set output 'test.png' 

set view map 
unset tics 
unset colorbox 
set size ratio 1 

set border 15 back lw 20 

splot sin(sqrt(x**2+y**2))/sqrt(x**2+y**2) w pm3d notitle 

这将产生:

enter image description here

人们也可能要稍微增加isosamples,例如, set isosamples 100以获得更平滑的情节:

enter image description here

相关问题