设置坐标轴刻度偏移量和刻度文本(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
相关文章推荐
- 学习python中matplotlib绘图设置坐标轴刻度、文本
- python matplotlib绘图设置坐标轴刻度、文本
- EditText动态设置文本类型
- QWT坐标刻度设置时的2个细节
- echarts图表坐标刻度过多如何设置刻度间隔(interval)以及配置说明
- 转:TextView使用SpannableString设置复合文本
- android textview 文本在代码中设置粗体效果
- TextView使用SpannableString设置复合文本
- Android TextView 通过代码设置加粗和取消加粗 等效果无反应或者反应缓慢
- TextView使用SpannableString设置复合文本
- 设置TextView文本超出显示省略号
- 演示MatPlotLib中如何设置坐标轴主刻度标签和次刻度标签
- 16-0 b879 1-13 TextView 设置文本颜色
- 设置text-overflow文本溢出隐藏时的对齐问题
- 设置TextView 一行文本显示不同的效果
- TextView怎么在文本末尾设置图片
- android:TextView中的文本链接之--设置超链接、颜色、字体等属性
- TextView使用SpannableString设置复合文本(转)
- editText文本设置显示和隐藏
- 当EditText是多行文本时, 光标如何设置在从左上角