我正在使用随附的脚本制作带有色条的3D图像。 但是我不知道如何改变y轴的方式,使其2/3显示[0,250],其余1/3显示[250:400]。这样,我想在较低的y值上进行缩放。我尝试了断开轴,但是它不能与污点一起使用,这也不是我想要的。我在考虑多图选项2x1 rowfirst,第一行有额外的空间,但是我做不到。
有人可以帮助我吗?
脚本:
set term postscript eps enhanced color fontscale 2.0
set output '|ps2pdf - surf.pdf'
set bar 1.000000 front
set border 4095 front lt black linewidth 1.000 dashtype solid
set style circle radius graph 0.02, first 0.00000, 0.00000
set style ellipse size graph 0.05, 0.03, first 0.00000 angle 0 units xy
set style textbox transparent margins 1.0, 1.0 border
set logscale cb
set format cb "%2.0t{/Symbol\264}10^{%L}"
set encoding utf8
set view map scale 1
set samples 50, 50
set isosamples 50, 50
unset surface
set style data pm3d
set style function pm3d
set xyplane relative 0
unset paxis 1 tics
unset paxis 2 tics
unset paxis 3 tics
unset paxis 4 tics
unset paxis 5 tics
unset paxis 6 tics
unset paxis 7 tics
##set title "colour map, using default rgbformulae 7,5,15 ... traditional pm3d (black-blue-red-yellow)"
set xlabel "Energy (eV)"
set xrange [ 2490 : 2500 ] noreverse nowriteback
set ylabel "Time (fs)"
set yrange [ 0.0 : 400 ] noreverse nowriteback
set xtics 2490,2,2500
set paxis 1 range [ * : * ] noreverse nowriteback
set paxis 2 range [ * : * ] noreverse nowriteback
set paxis 3 range [ * : * ] noreverse nowriteback
set paxis 4 range [ * : * ] noreverse nowriteback
set paxis 5 range [ * : * ] noreverse nowriteback
set paxis 6 range [ * : * ] noreverse nowriteback
set paxis 7 range [ * : * ] noreverse nowriteback
set pm3d implicit at b
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.05, 0.6, 0 front noinvert bdefault
splot 'surface.txt' u 2:1:3 notitle
答案 0 :(得分:0)
如果您只询问y轴刻度标签,而不是重新调整轴本身的缩放比例,那么下面是一个示例,该示例将间距为[0:250]的细间距标签与两个额外的300和400标签组合在一起。
set ytics 0, 10, 250
set ytics add (300, 400)