Hi,
I need to plot a choropleth world countries map with annotations (box with text and data about the country and a connection line from country on the map to the box). This plot will be an illustration in the broshure, so it has to be static.
Any suggestions how to do this?
Hi @completebasis,
Unfortunately, I donโt think itโs possible to specify annotations in geo coordinates. So I think the best approach would be to draw the annotations in โpaper coordinatesโ (https://plot.ly/python/text-and-annotations/#adding-annotations-with-xref-and-yref-as-paper). In paper coordinates, the x and y positions are normalized values between 0 and 1. Here you would have to use trial and error to position the boxes/arrows where you want, but for a static plot I think you could get the visual appearance youโre after.
To style them with a box and arrow, see https://plot.ly/python/text-and-annotations/#styling-and-coloring-annotations.
Hope that helps get you started,
-Jon
1 Like
Thank you, Jon! Iโll try to work it out
After all, I decided to do it manually in Photoshop. Without a method, that gives a position of a country, finding a paper coordinate for annootation seems to be a hard task.