|
From: theozh <th...@gm...> - 2018-08-13 14:22:41
|
How can I put several labels with different label background colors or box frames? I'm using gnuplot 5.2rc4 After painful placing colored rectangle objects behind label text, I found the "set style textbox" option. However, I haven't found how to place different styles within one plot. The below example should create a red and green box but creates two green boxes. Apparently, the last style is applied to all textboxes. Can several textbox styles 1,2,3,... be defined? Like linetype, linecolor, etc.? ### different label background styles within one plot??? reset unset label unset object set label 1 "This is some text" at graph 0.1, 0.7 set style textbox opaque border lc rgb "black" lw 1 fc rgb "red" set label 2 "Some text with red background" at graph 0.1, 0.6 boxed front set style textbox opaque noborder lw 1 fc rgb "green" set label 3 "Some text with green background" at graph 0.1, 0.5 boxed front plot 10*sin(x), 10*cos(x) ### end code |