-
Notifications
You must be signed in to change notification settings - Fork 229
Description
Description of the problem
I am finding that adding text from a file isn't working as expected (based on the GMT documentation). The additional arguments are not parsed, instead the input files are treated as if there were only 3 input columns (x, y, text).
Full code that generated the error
You will need an additional file:
echo 117,5.2,Helvetica,0,CM,SABAH > example.txt
fig = pygmt.Figure()
with pygmt.config(MAP_FRAME_TYPE="plain"):
fig.basemap(region=[108, 120, -5, 8], projection="M20c", frame="a")
fig.coast(land="black", water="skyblue", N="1/2p,white")
fig.text(textfiles="example.txt", font="12p,Helvetica-Bold,white")
fig.show()
Full error message
This actually appeared to be a problem with GMT 6 as well. Maybe I'm just missing something? I am interpreting it from: This is one or more files containing 1 or more records with (x, y[, font, angle, justify], text).
If so, apologies. I also tried delimiting with spaces instead of commas to no avail.
System information
Please paste the output of python -c "import pygmt; print(pygmt.__version__)"
:
v0.1.1
(Note: I had to change the above command, as pygmt.show_versions() didn't exist!)