Skip to content

[Bug]: Capstyle has no effect on FancyArrow #22340

@mapfiable

Description

@mapfiable

Bug summary

I was trying to create a FancyArrow with a butt, but changing the capstyle has no effect. I guess this is related to #13641?

Code for reproduction

import matplotlib.pyplot as plt
from matplotlib.patches import FancyArrow


fig, ax = plt.subplots()
for i, cs in enumerate(['butt', 'round', 'projecting']):
    arrow = FancyArrow(0, 0+i, 1, 0, width=0.1, capstyle=cs)
    ax.add_patch(arrow)

ax.relim()
ax.autoscale_view()
fig.show()

Actual outcome

grafik

Expected outcome

Something similar to this:

grafik

Additional information

No response

Operating system

No response

Matplotlib Version

3.5.1

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions