-
Notifications
You must be signed in to change notification settings - Fork 224
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
Wrapper for pstext #122
Comments
I think supporting some feathers like:
in the module BasePlotting may be a good choice at the moment..... :) to console a command in the form like:
Here temp.txt is the input file I created. |
@ziyixi there were some changes made to the internal data structures of GMT lately regarding text input. I still need to do some work on the undelying virtual file machinery to make this work but that is the way forward. This will have to wait a bit but it should be ready in the next couple of months. Then it would be possible to wrap We decided not to add the raw GMT command-line option because it doesn't integrate well with Python and an be replaced by a subprocess call. We also try to avoid using temp files as much as possible and pass things in memory between GMT and Python. Thanks for the input! We'll keep you posted when the virtual file parts are ready for pstext. |
Initial commit for wrapping the text/pstext function raised at GenericMappingTools#122, to be implemented under base_plotting.py alongside the other mapping related stuff. Original GMT `text` documentation can be found at https://gmt.soest.hawaii.edu/doc/latest/text.html. Storing sample test cases at test_text.py. Current implementation takes in either a text filename or x,y,text triples as input.
Hi @ziyixi, |
Hello, I have noticed there is no support for the common used command pstext. I have tried hours for supporting the command in my own machine. However, there seems to be some problems handling input like:
when I want to realize:
a common choice in the python module is:
so how to input?
First I have tried use the virtual file you have used. However, it seems the virtual file only supports numbers but not strings like "Washington"..
Then, since we couldn't use the virtual database supported by GMT, then the only choice might be the python own virtual file, but it seems difficult to combine it with the console of libgmt....
Then we might need create a file in some place like /tmp or some place else to create a real file? or some realization similar to the GMT database..
I think this feather is really important and what's your advise?
The text was updated successfully, but these errors were encountered: