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
Labels
Description
Bug summary
Matplotlib is missing auto-scale support for LineCollection.
Related issues:
- [Bug]:
add_collection3d
does not update view limits #23317 - FIX: Autoscale support in add_collection3d for Line3DCollection and Poly3DCollection #28403
Code for reproduction
frommatplotlibimportpyplotaspltfrommatplotlib.collectionsimportLineCollectionlc=LineCollection([[(x,x**2)forxinrange(5)]])ax=plt.gca()ax.add_collection(lc)# ax.autoscale() # need to manually call thisplt.show()
Actual outcome
Expected outcome
Additional information
No response
Operating system
macOS 14.6.1
Matplotlib Version
3.9.3
Matplotlib Backend
macosx
Python version
3.12.7
Jupyter version
7.2.2
Installation
pip