2017-09-30 81 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

相關問題