You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: add_collection3d does not update view limits #23317
Produced by uncommenting the line of code below # Manually update view limits.
Additional information
I'm using matplotlib 3.5.0, but the relevant code does not seem to call auto_scale_xyz like the other plot functions in the 3.5.2 branch or the main branch.
On further test this seems to also happen with add_collection of 2D plots and seems to be known to be broken judging from the documentation for matplotlib.axes.Axes.relim.
Recompute the data limits based on current artists.
At present, Collection instances are not supported.
Anyway, it is still best to make this consistent with the other plotting functions.
Activity
Qrox commentedon Jun 27, 2022
On further test this seems to also happen with
add_collectionof 2D plots and seems to be known to be broken judging from the documentation for matplotlib.axes.Axes.relim.Anyway, it is still best to make this consistent with the other plotting functions.
oscargus commentedon Aug 8, 2022
I guess it may be possible to iterate over the collection objects similar to
matplotlib/lib/matplotlib/axes/_base.py
Lines 2453 to 2460 in 4f5cacf
but there may be some obstacles (including being slow for large collections...).