TICK MARK OFFSET 刻度径向偏离

为了更有层次地显示我们的刻度,我们可以采用设置径向偏离的距离来对比显示:

定义:

同样是定义在ticks模块(全局定义),或者tick小模块(局部定义) 注意 :当tick mark(刻度)被设置偏移时,不要忘记也要同时标签label的偏移给设置好。而且他们应该偏移相同量。

a)刻度偏移:

<ticks>
...
offset = 2p
...
  <tick>
  offset = 1p
  ...
  </tick>
</ticks>

b)标签偏移

<ticks>
...
# all labels offset by 0.4x their tick size
label_offset = 0.4r
...
  <tick>
  # this label has an additional 2 pixel offset
  label_offset = 2p
  ...
  </tick>
</ticks>

官方conf文档here

results matching ""

    No results matching ""