You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Figure.text: Allow passing in a list/array of angle/font/justify values to text #483
On the non-user facing side, it would be nice too if we can pass the x,y,text input via a virtualfile as mentioned in #321 (comment), instead of a temporary tab-delimited file. This will be a more efficient method of passing data around rather than relying on the pandas.to_csv method. Will need to modify virtualfile_from_vectors to accept str type arrays, see #481 (comment).
Are you willing to help implement and maintain this feature? Happy to review a PR for it 😄
Not implemented yet, but better to track it in #479.
On the non-user facing side, it would be nice too if we can pass the x,y,text input via a virtualfile as mentioned in #321 (comment), instead of a temporary tab-delimited file. This will be a more efficient method of passing data around rather than relying on the pandas.to_csv method. Will need to modify virtualfile_from_vectors to accept str type arrays, see #481 (comment).
changed the title [-]Allow passing in a list/array of angle/font/justify values to text[/-][+]Figure.text: Allow passing in a list/array of angle/font/justify values to text[/+]on Oct 9, 2023
Activity
seisman commentedon Jun 22, 2020
Here are some technical notes, which may be useful (or may be wrong) if someone wants to implement this feature.
put_vector()function (wrapper of GMT APIGMT_Put_Vector()) can only pass numerical and datetime vectors/arrays to GMT APIGMT_Put_Strings()function (no wrapper for it yet)GMT_Put_Vectors()multiple times, and pass one vector each timeGMT_Put_Strings()one time to pass one single string array to GMTThus, to implement this feature, you need to:
GMT_Put_Strings()function, i.e.,put_strings()put_vector()function one by oneput_strings()functionFor example, if you want to pass the following arrays to make
text()accept input format x, y, angle, justify, font, text:You need to:
put_vectors()three times, passing vectorsx,y,angle, respectivelynew_stringto GMT by callingput_strings()seisman commentedon Oct 7, 2023
Will be addressed in PR #2720.
Not implemented yet, but better to track it in #479.
Already done in #559.
In other words, this issue report will be closed by #2720.
[-]Allow passing in a list/array of angle/font/justify values to text[/-][+]Figure.text: Allow passing in a list/array of angle/font/justify values to text[/+]