Reputation: 7331
I have a bunch of data that I'm plotting as point plots. The data is simply a column for X and a column for Y. The catch here though is this is plotted using axes x2y2.
The x1y1 is used for a histogram. The X axis is the same range for both plots.
I know how to derive the X coordinate, but am wondering if there is an easy way to determine the Y value to use to draw an arrow. I want to draw an arrow callout for an arbitrary point on the point plot.
y1 and y2 are independent.
Upvotes: 3
Views: 271
Reputation: 48390
The coordinates for drawing the arrow can refer to different coordinate systems (first
, second
, character
, screen
, and graph
, see help coordinates
).
So, to draw an arrow e.g. from the top-middle of the plot (graph 0.5, graph 1
) to x2 = 1
, y2 = 2
(second 1, second 2
) you would write
set arrow from graph 0.5, graph 1 to second 1, second 2 head
Upvotes: 1