Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Labels
Description
Bug summary
When using xkcd mode with some changes to parameters (and depending on figure DPI/size), there are sometimes small artifacts in the result. See theB
,S
, andF
bars in the example, which have a small white triangle cutout on the right side. These triangles may grow slightly, or disappear entirely depending on figure height.
Code for reproduction
importmatplotlib.pyplotaspltdata= {'G':131,'B':49,'S':41,'F':18,'H':12,'L':9,'T':5,'W':4,}plt.xkcd(scale=1,length=200,randomness=0.5)plt.figure(figsize=(8,6),dpi=200)plt.bar(data.keys(),data.values())plt.show()
Actual outcome
Expected outcome
Same as above, but without the white triangles in the bars.
Additional information
No response
Operating system
No response
Matplotlib Version
Matplotlib Backend
No response
Python version
3.11.1
Jupyter version
No response
Installation
git checkout