Changing symbol outline color using plot

I’m trying to change the outline color for symbols using the pen arguments, however the outline remains black regardless of the selected color. The PyGMT documentation seems to imply that you can change the outline attributes using the pen argument (which I can for the width). Here’s what I was trying:

import pygmt

fig = pygmt.Figure()
fig.basemap(region=[0, 8, 0, 3], projection="X12c/4c", frame=True)

fig.plot(x=2, y=1.5, style="l1c+tA", color="dodgerblue3", pen="0.5p,green")
fig.plot(x=5, y=1.5, style="l1c+tA", color="white", pen="0.5p,blue")

fig.show()

I get this as the result.

Hi, @atrevisan21, try the following code, it works fine for your purpose.

import pygmt
fig = pygmt.Figure()
fig.basemap(region=[0, 8, 0, 3], projection="X12c/4c", frame=True)
fig.plot(x=2, y=1.5, style="l3c+tA+fdodgerblue3=.9p,green,solid")
fig.plot(x=5, y=1.5, style="l3c+tA+f-=0.9p,blue,solid")
fig.savefig("outline.png")

the output plot is here.

Opened a PR to adjust the descripiton in the corresponding gallery example. I agree, that it’s not fully clear so far how to change the outline color.

How to use with rotation text?