감동, 마음이 움직이는 것

[gnuplot] pdfcairo multiplot mode에서 그림 크기 조정 본문

Tips (Utility, Computer Language, and etc.)

[gnuplot] pdfcairo multiplot mode에서 그림 크기 조정

Struggler J. 2018. 4. 6. 08:58

https://stackoverflow.com/questions/28886627/gnuplot-multiplot-size-and-scaling-of-one-plot


매번 pdfcairo에서 multiplot mode사용할 때마다 그림 크기 조절하는 게 너무 어려웠는데 드디어 알아냄.


1. 전체 그림크기는 dashed size로 조절 가능

(예) set t pdfcairo enh color dashed size 2,1

 set multiplot layout 1,2




2.  각 그림의 panel은 margin으로 조절가능.

set lmargin 5.3

set bmargin 2.5

set rmargin 0.7

p x


set lmargin 3.5

set bmargin 2.5

set rmargin 2.5

p x


이렇게 하면 오른쪽 왼쪽 마진이 같기 때문에 두 패널의 크기는 같게 하면서 위치를 그림의 위치를 이동시킬 수 있다.