richor的个人博客分享 http://blog.sciencenet.cn/u/richor

博文

gnuplot做直方图和设定坐标轴精度

已有 4465 次阅读 2018-4-17 09:40 |个人分类:计算机|系统分类:科研笔记| gnuplot, 直方图, gnuplot, 坐标轴精度, gnuplot, 特殊字符, gnuplot, gnuplot, gnuplot

统计直方图(for example bond.plt)还不同,直方图更简单,不用做统计。

#life.plt
set term png size 640,480
set output "lifetime.png"
set style data histogram
set style histogram clustered gap 2.5
set style fill solid 0.4 border
set xlabel "shift polar (e)"
set ylabel "lifetime (ns)"
unset key
plot 'stable.dat' u 2:xticlabels(1),'stable.dat' u 3:xticlabels(1),...
'stable.dat' u 4:xticlabels(1)

怎么设置gnuplot 某坐标轴数值的精度?

https://blog.csdn.net/liyuanbhu/article/details/8502461


set format x "%7.3f"

很有用。

直方图常常会label不够地方,采用倾斜的办法:

set xtics rotate by -45

如果想取出这些数据,则set table.


特殊字符的输入:

直接从word中copy即可。



https://blog.sciencenet.cn/blog-485752-1108359.html

上一篇:gromacs计算两个原子之间的距离
下一篇:xyz轨迹文件距离分析
收藏 IP: 210.72.8.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-24 02:05

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部