格式说明符 %c 为您提供相应科学力量的角色替换,例如 k 对于1e3, M 对于1e6等。说明符 %s 设置相应的尾数。
%c
k
M
%s
考虑以下文件 test.dat :
test.dat
1e7 2e7 5e7 1e8
随着脚本
set format y '%.0s%cB' plot 'test.dat' with linespoints
你得到输出(使用4.6.5):