2014-12-03 38 views
0

我試圖做一個總體情節,我不知道範圍。有時在tic標記上會出現更多的零或「 - 」,這會導致圖表區域收縮。我更喜歡tic標籤向左延伸,保持圖形大小。這有助於對齊,這是這些情節的關鍵部分。防止在gnuplot中調整tic標籤的大小圖

有沒有人有關於如何做到這一點的想法?我的搜索還沒有透露任何東西。

回答

2

您可以使用set lmargin設置固定的左邊距。例如, set lmargin 10您修復留有餘量,以10米字符寬度:

set multiplot layout 2,1 
set lmargin 10  
set xrange [0:10] 
plot x 

set xrange[0:100000] 
plot x 
unset multiplot 

enter image description here

當然,你仍然必須找到左邊距大小適當的設置。

另外一點,標籤的位置也取決於ticlabel的長度。

set multiplot layout 2,1 
set lmargin 10 
set ylabel 'ylabel' 

set xrange [0:10] 
plot x 

set xrange[0:100000] 
plot x 
unset multiplot 

enter image description here

所以你需要更改與offset參數ylabel位置。爲了有更一般的,你可以把ylabel用通常的set label命令有它固定的獨立的頁邊距設置:

set multiplot layout 2,1 
set lmargin 10 
set label 1 'manual label' at screen 0.03,graph 0.5 center rotate by 90 

set xrange [0:10] 
plot x 

set xrange[0:100000] 
plot x 
unset multiplot 

enter image description here

+0

可怕的晚,但總比沒有好。感謝您的回覆,這完全解決了我的問題。 – 2017-05-26 20:51:49