-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Open
Labels
Description
Bug summary
Using ax.annotate to plot arrow with widthB, but the width of the arrow is not equal to the widthB
Code for reproduction
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(8, 8), dpi=72)
ax.set_xlim(0, 8)
ax.set_ylim(0, 8)
ax.annotate("Test", xy=(3, 2),
xytext=(0, 2),
textcoords="offset points",
ha='center', va='bottom',
arrowprops=dict(arrowstyle="-[, widthB = 2"))
plt.show()
Actual outcome

Expected outcome
expect the width is equal to 2
Additional information
No response
Operating system
No response
Matplotlib Version
3.7.2
Matplotlib Backend
MacOSX
Python version
Python 3.11.4
Jupyter version
No response
Installation
None