-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
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()Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels