Better support for plotting text in 3D at different heights #1393
Labels
feature request
New feature wanted
good first issue
Good for newcomers
help wanted
Helping hands are appreciated
Description of the desired feature
For 3D plots, it should be possible to plot text at different heights based on a 'z' column, see https://docs.generic-mapping-tools.org/6.2/text.html#z. The current implementation of
text
in PyGMT (see https://www.pygmt.org/v0.4.0/api/generated/pygmt.Figure.text.html) does support this, but users have to provide the xyz input into thetextfiles
parameter, and it is also not very discoverable for new users.It would be nice to have a
z
parameter (in addition tox
andy
) to be clear thattext
does support multi-height plotting. Here's a checklist for anyone wanting to work on this 'enhancement'.TODO:
-Z
, call itzvalue
(as inplot3d
)?z
parameter here:pygmt/pygmt/src/text.py
Lines 48 to 49 in 945bbc5
need to wait for Refactor text to use virtualfile_from_data #1121 thoughedit: done!):pygmt/pygmt/src/text.py
Lines 160 to 170 in 945bbc5
text
API docstring to document the new behaviour.Are you willing to help implement and maintain this feature? Please wait for #1121 before starting work on this (Edit: that PR is merged, so ready to start)!
The text was updated successfully, but these errors were encountered: