Gnuplot:logscale图上的箭头

时间:2016-11-21 16:15:33

标签: gnuplot

以以下MWE为例:

set logscale xy
set arrow 1 from 1, graph 0 to 1, graph 1
set arrow 2 from graph 0,1e+02 to graph 1,1e+02
p [x=0.001:100] (10**x)**(.111111) t ''

箭头1会显示正常,但箭头2则不会。我也试过了

set arrow 2 from graph 0,100 to graph 1,100

并且,如果存在一些日志缩放问题,

set arrow 2 from graph 0,2 to graph 1,2.
箭头2仍然是MIA。有什么建议吗?

1 个答案:

答案 0 :(得分:3)

您为箭头点的x坐标指定的坐标类型(此处:graph)也用于y坐标:

  • 1, graph 0相当于first 1, graph 0
  • graph 0,100相当于graph 0, graph 100

这意味着,您的第二个箭头完全在绘图窗口之外。

set logscale xy
set arrow 1 from 1, graph 0 to 1, graph 1
set arrow 2 from graph 0, first 1e+02 to graph 1, first 1e+02
p [x=0.001:100] (10**x)**(.111111) t ''

enter image description here