Gnuplot并没有在所有tic标记上贴标签

Gnuplot并没有在所有tic标记上贴标签,gnuplot,Gnuplot,我正在做一个短数据文件的日志图: 22.5 4.5 15.5 7.4 12.2 9.6 8.0 12.5 7.1 14 5.7 16.4 4.4 18.2 3.8 20.8 3.2 23.5 1.2 28.3 0.2 38.4 到目前为止,我使用的命令如下: plot "data.dat" using (($2)*0.01):(($1)*(10**(-5))):(0.005):(0.3*(10**(-5))) with xyerrorbars linestyle 7 title 'dados

我正在做一个短数据文件的日志图:

22.5 4.5
15.5 7.4
12.2 9.6
8.0 12.5
7.1 14
5.7 16.4
4.4 18.2
3.8 20.8
3.2 23.5
1.2 28.3
0.2 38.4
到目前为止,我使用的命令如下:

plot "data.dat" using (($2)*0.01):(($1)*(10**(-5))):(0.005):(0.3*(10**(-5))) with xyerrorbars linestyle 7 title 'dados colhidos'
set logscale
set xrange [0.035:0.4]
set yrange [0.05*(10**(-5)):30*(10**(-5))]
set xtics 0.04,0.05,0.39
set ytics 0.1*(10**(-5)),5*(10**(-5)),30*(10**(-5))
set xtics nomirror
set ytics nomirror
set format x "%f"
set format y "%f"
replot
但在绘图中,只有第一个tic标记(x轴和y轴之一)被标记:

x轴为0.04,y轴为0.1*(10**(-5))

如果我有足够的声誉,我会发布一张我得到的情节照片

我已经在网上搜索了一些关于gnuplot的书,但是没有找到任何帮助

我想要的是标签(数字)在所有的tic标记上。你知道吗

谢谢你的阅读


我使用的是版本4.6 patchlevel 5。

对于对数图,用
set xtics
set ytics
指定的增量是乘数。此外,对于对数图,不能使用任意tic标签,但标签必须与用于对数刻度的基准相关

以这个例子为例

set logscale
set xrange [0.035:0.4]
set yrange [0.05*(10**(-5)):30*(10**(-5))]
set tics format "%f"
unset key

plot "data.dat" using ($2 *0.01):($1*1e-5):(0.005):(0.3e-5) with xyerrorbars ls 7
结果

关于y轴,这对我来说很好。对于x轴,您可能希望尝试为对数刻度使用不同的基准。但如果结果更好,你必须自己决定:

set logscale y
set logscale x 2
set mxtics 8
set xrange [0.035:0.4]
set yrange [0.05*(10**(-5)):30*(10**(-5))]
set tics nomirror format "%f"
unset key

plot "data.dat" using ($2 *0.01):($1*1e-5):(0.005):(0.3e-5) with xyerrorbars ls 7

我认为您的脚本不完整。你说的是对数图,但你没有对数标度。此外,必须将
plot
命令作为脚本中的最后一行。请更新脚本,以便使用
重置;加载“script.plt”
显示错误。如果无法包含图像,请将其上载到某个位置,例如,并共享链接。我编辑了这篇文章:我忘记了一些台词。。。再次感谢你!知道了!这当然对我有帮助。我非常感谢你!