-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2D annotations (text) in plot3d #2001
Comments
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct. |
Thanks for the feedback @andrebelem! For the first point, do you think the solution proposed in #1393 would work for your use case? |
Humm..that's very interesting. So, if I understood well, pygmt.text should work for a given x/y/z text? |
This is an example of that option in use for GMT - https://docs.generic-mapping-tools.org/latest/gallery/ex08.html. While the text is plotted at z=0, it could be plotted at other elevations. |
Well, that's the problem. The text written on top of the cube is in perspective. My suggestion is to have the position anchor based on X/Y/Z but write "flat", in 2D (for example as ETOPO5 is written in the title). I had already seen the text (pstext) and tried several alternatives here, and I was only able to do it "by hand" by placing a basemap over the 3D, but it is much harder to get right. |
I'm not sure the best way to accomplish the map you're looking for. Could you pose the question to the GMT forum to find out if there's an easier way to get that appearance using GMT, which would inform whether we can support that in PyGMT? |
Sorry for the long delay. |
I've been working a lot with pygmt's 3D (plot3D) fields, and it's excellent!
However, the biggest difficulty is that when I need to annotate any point in the figure, the use of the "l" option (-Sl n GMT) only allows it to write in 3D, when in fact it would be interesting to have the text in 2D, in the position X Y Z.
Another interesting point is that as much as I try to change the text justification via "+jBL" to bottom left, the text doesn't change, being always centered.
The text was updated successfully, but these errors were encountered: