-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Take the following simple code
import ultraplot as uplt
fig,ax = uplt.subplots()
ax.text(
.5,.5,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
ha='center',
color='w',
border=True,
bordercolor='k',
borderwidth=3,
)
fig.savefig('C:/Users/kchudler/Downloads/fig_w_border_arg.png')
The figure displays fine on my display. However, if I open the saved png, I see that some of the letters have these weird pointy artifacts in the letter borders:
If I use path_effects instead, the artifacts do not appear:
import matplotlib.patheffects as pe
import ultraplot as uplt
fig,ax = uplt.subplots()
ax.text(
.5,.5,
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
ha='center',
color='w',
path_effects=[pe.withStroke(linewidth=3, foreground='k')],
)
fig.savefig('C:/Users/kchudler/Downloads/fig_w_patheffects.png')

Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request