Skip to content

Wrapper for pstext #122

@ziyixi

Description

@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:

gmt pstext -J -R -F+f12p,1,black+jTL -D-1.5c/-0.15c -K -O >> $PS << EOF
-77.15 38.89 Washington
76.22 -69.22 Zhongshanzhan
EOF

a common choice in the python module is:

gmt.pstext(<some parameters>)

so how to input?

<< EOF
-77.15 38.89 Washington
76.22 -69.22 Zhongshanzhan
EOF

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions