2016-11-21 54 views
1

采取下列MWE例如:gnuplot的:箭头上logscale情节

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。有什么建议么?

回答

3

坐标型(这里:)的箭头点的你指定的x坐标也被用于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

+0

真棒,谢谢! – Dai