Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make labels and title bold in gnuplot?

I want to make the labels and title of the plot bold. I know how to change size, i.e.

set title font ',30'

I looked at a question here which state to do this:

set ytics format "{/:Bold {/=14 %h}}"

But it works only for tics. How to do it for labels and titles also?

like image 381
Sahil Avatar asked Oct 27 '25 05:10

Sahil


1 Answers

Which gnuplot version and which terminal are you using? The following should work from gnuplot >=5.0.0 with wxt terminal.

Code:

### bold labels and title
reset
set term wxt enhanced

set title  "{/:Bold My Title in bold}"
set xlabel "{/:Bold my xlabel in bold}"
set ylabel "{/:Bold my ylabel in bold}"

plot x
### end of code

Result:

enter image description here

like image 170
theozh Avatar answered Oct 30 '25 01:10

theozh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!