【问题标题】:How to make labels and title bold in gnuplot?如何在 gnuplot 中使标签和标题加粗?
【发布时间】:2021-06-14 13:08:48
【问题描述】:

我想让情节的标签和标题加粗。我知道如何改变大小,即

设置标题字体',30'

我在这里查看了一个问题,在哪个州执行此操作:

设置 ytics 格式“{/:Bold {/=14 %h}}”

但它仅适用于抽搐。标签和标题也怎么做?

【问题讨论】:

  • 您使用的是哪个 gnuplot 版本和哪个终端?

标签: plot gnuplot bold


【解决方案1】:

您使用的是哪个 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 对。出于某种原因,在 5.4.1 中该键似乎自动为粗体,但在 5.0.0 中不是,因此请尝试set key font "{:Bold}," 。
  • 是的,这种方法适用于任何事情。它也适用于抽搐。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-02-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-03-13
  • 1970-01-01
相关资源
最近更新 更多