Skip to content

[Bug]: The width of arrow is not equal to the widthB setting in arrowprops #26435

@ilongshan

Description

@ilongshan

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

image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions