Hello again,
It seems that I got stuck on another issue and I need further help. I have multiple points with lat/long coordinates and a name for each point. I currently have marked these points with a yellow circle on the map using psxy and printed their name using pstext. To do that I have created a file points.txt with the following format:
long1 lat1 name_of_point1
long2 lat2 name_of_point2
…
and run:
gmt psxy -R -J -O -Sc0.2 -Gyellow -Wthinnest points.txt -K >> map.ps
gmt pstext -R -J -O -Dj0.15/0 -F+f12p,Courier-Bold,yellow+j -N points.txt -K >> map.ps
This works fine, but now I need to extend this annotation. For EACH of these points I need to do the following:
- Draw an arrow with one color starting from a point.
- Draw another arrow starting from the same point with a second color. For both arrows, I have their size on the x and the y axis. Can I use directly this information or do I need to calculate the lat/long coordinates of the ending point of the arrow (e.g., calculate the size of the arrow as sqrt(x^2 + y^2), the rotation angle from tan(angle)=y/x, make further transformations and add the results to the lat/long coordinates of the point)?
- A circle and the name of the point with a third color.
- Print at the end of each arrow the text (x, y) with the corresponding color for each arrow, where x and y are the size of each arrow on each axis.
How can I modify points.txt to do that? I tried to understand whether I can do it by defining a multi segment file, but I could not understand the complete syntax for these files.
If it helps, I want to do something similar to Figure 5 in https://web.itu.edu.tr/~taymaz/docs/2017-Saltogianni-Taymaz-etal-Leucas-BSSA.pdf
Any help is greatly appreciated!