-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actionstatus: confirmed bugtopic: arrow
Description
Bug report
When using a very long FancyArrowPatch with connectionstyle="arc3", subsequent axes autoscaling can badly squash the figure's content. Example below exhibits the problem, but more extreme squashing can easily be obtained. Possibly this is not limited to FancyArrowPatch?
Code for reproduction
import matplotlib
import matplotlib.pyplot as plt
fap = matplotlib.patches.FancyArrowPatch(
(10, 10),
(20, 2e4),
mutation_scale=50,
connectionstyle="arc3,rad=0.3",
)
_, ax = plt.subplots()
ax.add_patch(fap)
ax.set_title(f"matplotlib {matplotlib.__version__}")
ax.autoscale_view()
ax.figure.savefig("curved-arrow.png")Actual outcome
Expected outcome
The axes view should span the drawn content. Any control point(s) required for the arc should be ignored.
Matplotlib version
- Operating system: Linux
- Matplotlib version: 3.3.4
- Matplotlib backend: Reproducible with at least
GTK3Aggandagg. - Python version: 3.9
Matplotlib installed via pip.
Metadata
Metadata
Assignees
Labels
keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actionstatus: confirmed bugtopic: arrow
