2016-11-21 4 views
1

Nehmen Sie das folgende MWE zum Beispiel:Gnuplot: Pfeil auf logscale Grundstück

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 '' 

Pfeil 1 wird gut zeigen, aber Pfeil 2 nicht. Ich habe auch versucht,

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

und im Fall, dass ein Log-Skalierung Problem war,

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

Pfeil 2 ist noch MIA. Irgendwelche Vorschläge?

Antwort

3

Die Art Koordinate (hier:), die Sie für den angegebenen x-Koordinate eines Pfeils Punkt wird auch zur Y-Koordinate:

  • 1, graph 0 äquivalent zu first 1, graph 0
  • aber graph 0,100 entspricht zu graph 0, graph 100.

Das bedeutet, dass sich Ihr zweiter Pfeil vollständig außerhalb des Plotfensters befindet.

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

Awesome, thanks! – Dai