您有几种选择:
似乎像情况2)在这里适用,因此在绘制之前跳过某些标签会使绘图看起来更好。
您可以使用以下脚本对文件进行预处理,以跳过每第5个标签(例如):
line_number = 0
for line in open("d1.txt", "r"):
line_split = line.split(",")
if(line_number % 5 == 0):
print line,
else:
print ",",line_split[1],
line_number += 1
您现在可以使用适当的字体大小进行绘图
set xtics border in scale 1,0.5 nomirror rotate by -90 offset character 0, 0, 0
set xtics font ",9"
plot "d2.txt" using 2:xticlabels(1) with histogram title "legend_here"
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句