proplot icon indicating copy to clipboard operation
proplot copied to clipboard

path effects not pretty

Open kinyatoride opened this issue 1 year ago • 0 comments

Description

Hi, I found that the path effects around title are sometime not as pretty as the default ones in matplotlib. I really like this feature in proplot so it would be nice if we can fix this. Below, I show an example where the path effect shows a weird behavior.

Steps to reproduce

import proplot as pplt
import matplotlib.patheffects as path_effects

pplt.rc.update(fontsize=16, titleborderwidth=4)

fig, ax = pplt.subplots()
ax.set_facecolor('gray')

ax.format(ultitle='MW')

text = ax.text(0.5, 0.5, 'MW')
text.set_path_effects([path_effects.Stroke(linewidth=4, foreground='white'),
                       path_effects.Normal()])

output

Proplot version

3.4.3 0.9.7

kinyatoride avatar Dec 20 '23 18:12 kinyatoride