I want to place a label on a plot which uses autoscale.
To keep the label at the same position i want to use alternative axis which don't use autoscale to get an absolute location.
How can I choose the uses axis of a "set label" statement?
set y2range [0:10]
set x2range [0:100]
set label "FooBar" at 10, 5
Line 3: something is missing here. "axes x2y2" wont work (used in plot label functions)
Thanks for helping me out here :-)
There are different coordinate systems which you can use to place labels (see
help coordinates
in the interactive terminal):first
, uses the first axis (x, y) as referencesecond
, uses the second axis (x2, y2) as referencescreen
, relative to the canvas sizegraph
, relative to the plot sizecharacter
, in character units.So the best way to get an absolute location inside the plot is with
graph
:You can also mix the coordinate systems: