我通过在 plot 命令之前设置它来在 gnuplot 中绘制一个箭头:
set arrow from graph -0.01, first cutOff-0.001 rto graph 0.02, first 0.002 lc rgb "blue" lw 5 nohead
plot ...
Run Code Online (Sandbox Code Playgroud)
但它出现在轴下方(即黑色轴明显在我的箭头上方 - 在这种情况下)。我怎样才能反转它,以便箭头(线)在上方?
我不确定我是否理解你的问题。对我来说,听起来您的轴是在箭头之后绘制的,因此轴与箭头相交的任何地方都显示为黑色(假定的轴颜色)而不是蓝色(箭头颜色)。如果是这种情况,您应该尝试添加front到您的设置箭头命令中。
例如
set arrow from graph -0.01, first cutOff-0.001 rto graph 0.02, first 0.002 lc rgb "blue" lw 5 nohead front
Run Code Online (Sandbox Code Playgroud)