Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Open
Description
Bug report
When using a very longFancyArrowPatch
withconnectionstyle="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 toFancyArrowPatch
?
Code for reproduction
importmatplotlibimportmatplotlib.pyplotaspltfap=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
GTK3Agg
andagg
. - Python version: 3.9
Matplotlib installed via pip.