我的图中的x轴和y轴具有相同的大小(设置xrange [0,10],设置yrange [0,10])。但是当我绘制它时,Gnuplot会在矩形框中显示它。 x轴伸展,但它具有相同的范围。 (如果你在gnuplot中绘制像f(x)= x这样的函数,你就会理解我。)
如何将其制成方形?
这是我从gnuplot制作eps的代码示例:
set terminal postscript eps color enhanced "Times Roman" 30
set output 'pic22.eps'
set encoding iso_8859_1
set size 1.0,1.0
set border 31 lt -1 lw 2.0
set pointsize 1.5
set ytics 0.5
set xtics 0.5
set mytics 2
set xrange [0:1]
set yrange [0:1]
set xlabel "~{/Symbol a}"
set ylabel "~{/Symbol b}"
set lmargin -1
set bmargin -1
set rmargin -1
set tmargin -1
set key box opaque
set label "HD" at 0.6,0.3 textcolor "black" font "Times Roman,30"
set label "LD" at 0.3,0.6 textcolor "black" font "Times Roman,30"
set label "MC" at 0.6,0.6 textcolor "black" font "Times Roman,30"
set arrow from 0.5,0.5 to 0.5,1.0 nohead lw 2
set key off
f(x)=x
g(x)=0.5
pl (x>-1 && x<0.507 ? f(x):1/0) w l lw 3 lc 7 lt 1, (x>0.5 && x<1.1 ? g(x):1/0) w l lw 3 lc 7 lt 1