Skip to content

annotation connectionstyle and width, headwidth compatibility issue #14195

@jiadongdan

Description

@jiadongdan

Some connectionstyle can not work!!!

See code below:

fig, ax = plt.subplots(1, 1, figsize=(7.2, 7.2))
start = (0.1, 0.1)
end = (0.5, 0.5)
connectionstyle='arc3, rad=1'
#connectionstyle='angle,angleA=-90,angleB=10,rad=5' #this not working

ax.annotate("",
            xy=end, xycoords='data',
            xytext=start, textcoords='data',
            arrowprops=dict(#arrowstyle="->, head_length=1, head_width=1",
                            width=10,headwidth=30,
                            color="0.5",
                            shrinkA=5, shrinkB=5,
                            patchA=None,
                            patchB=None,
                            connectionstyle=connectionstyle,
                            ),)

This code snipet works fine. However, if I change connectionstyle to "angle,angleA=-90,angleB=10,rad=5", it just does not work. Not sure what is wrong.

matplotlib version: 3.0.3

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