X Tutup
Skip to content

FancyBboxPatch wrong size #4325

@OceanWolf

Description

@OceanWolf

Not sure what happens, but this should give me an arrow within the bounds of x=0.2 to 0.6, and y=0.2 to 0.5, any idea what goes wrong here? Also the axes don't autoscale to include unless I add a plot (uncomment the line).

import matplotlib.pyplot as plt
from matplotlib.patches import FancyBboxPatch
from matplotlib.collections import PatchCollection

fig, ax = plt.subplots()
patches = [FancyBboxPatch((0.2, 0.2), 0.4, 0.3, boxstyle='rarrow',fc='blue')]
p = PatchCollection(patches)

ax.add_collection(p)
#ax.plot([0,0.5])
plt.show()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup