如何在gnuplot中使标签和标题加粗?

3
我想让图的标签和标题加粗。我知道如何改变大小,例如:

设置标题字体',30'

我看了这里的一个问题,它说明要这样做:

设置y轴刻度线格式“{/:Bold {/=14 %h}}”

但这仅适用于刻度线。如何将其应用于标签和标题?

你使用的是哪个gnuplot版本和哪个终端? - theozh
1个回答

4
您使用的是哪个gnuplot版本和终端?以下代码应该适用于gnuplot >= 5.0.0版本,使用wxt终端。 代码:
### 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

结果:

输入图像描述


关于密钥呢? - Sahil
3
@Sahil 没错。由于某种原因,在5.4.1中键似乎会自动加粗,但在5.0.0中不会,因此请尝试使用set key font "{:Bold}," - theozh
1
是的,这种方法适用于任何东西。它也适用于“井字游戏”。 - Sahil

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接