1
如何將boxed
label
與特定的background
顏色相加? (如圖例框)帶背景顏色的盒裝標籤
如何將boxed
label
與特定的background
顏色相加? (如圖例框)帶背景顏色的盒裝標籤
你的意思是這樣的:
LABEL="label in a box"
set obj 10 rect at 0,0 size char strlen(LABEL), char 1 fc rgb "cyan"
set label 10 LABEL at 0,0 front center
plot sin(x)
這裏有一個link在那裏我得到了主意,GNUPLOT的演示。
當然,你可以使框的尺寸稍微大一點 - 我發現它讓事情看起來更好一點:
set obj 10 rect at 0,0 size char strlen(LABEL)+1, char 1.5 fc rgb "cyan"
但是,這取決於你。