您的位置:首页 > 其它

设置坐标轴刻度偏移量和刻度文本(tics text)加粗--gnuplot

2017-11-18 10:58 405 查看
//设置刻度文本远离坐标轴
set xtics offset -3.5,0 font 'Times,19,Bold'
//设置刻度文本靠近坐标轴
set xtics offset 2.5,0  font 'Times,19,Bold'
//设置刻度文本加粗
set xtics font 'Bold'


offset is the offset of the tics texts from their default positions, while the default coordinate system is character.

e.g., set tics text with an offset of 0,0.5 characters.

从这句话可以看出设置坐标轴刻度文本的offset是指文本偏移原始位置多少个字符大小的位移量。

xtics的语法规则

Syntax:
set xtics {axis | border} {{no}mirror}
{in | out} {scale {default | <major> {,<minor>}}}
{{no}rotate {by <ang>}} {offset <offset> | nooffset}
{add}
{  autofreq
| <incr>
| <start>, <incr> {,<end>}
| ({"<label>"} <pos> {<level>} {,{"<label>"}...) }
{ font "name{,<size>}" }
{ textcolor <colorspec> }
unset xtics
show xtics


其中,

{no}mirror 选项是指 是否要在 顶部x2坐标轴显示刻度(即在与x轴对称的那个坐标轴上)。默认是打开了该选项的,若不想显示该刻度,就
set nomirror


Notes: 设置y坐标轴跟x坐标轴类似的。

例如:

set ytics offset -0.5,0 font 'Bold'


References:

set xtics
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息