I have a plot like this:
https://i.stack.imgur.com/zdike.png
I need the data coordinates of points in order to plot wind barbs.
Now, if I wanted a wind barb to be drawn at x=100, y=20, is there a way I can obtain the data coordinates of that ( or other ) points of my plot?
Would the
ARROWprocedure be of any use to you? It looks like you couldjust pass it your data coordinates (
x0=100, y0=20) for the base of the arrow,and another set of coordinates x1 and y1 representing the length and direction for the arrowhead end. It should take care of placing and scaling them properly on your plot.
But I don’t think
ARROWgives you any control over the arrow style, except for color,heaviness of the lines, and filled vs. unfilled. If you need to use a different
shape, I think you might have to express it as an array of XY points to define
the vertices of your custom arrow symbol, then rotate, scale, translate, and
PLOTSline segments between each symbol vertex.
The
DATAandDEVICEgraphics keywords tell the various plotting routines whetherthe coordinates are in data coordinates or device coordinates. I’m not sure from
your description which is the appropriate setting, but one of them should do what you want.