Commit 1d1d33f
committed
BUG: Fix relim() to support Collection artists (scatter, etc.) relim() previously skipped Collection instances entirely. Two issues: 1. add_collection() did not call collection._set_in_autoscale(True), unlike add_line(), add_patch(), and add_image(). This caused relim() to skip collections via the _get_in_autoscale() check. 2. relim() had no handling for Collection instances. Added an elif branch that calls get_datalim() and update_datalim(), mirroring the logic already used in add_collection(). Closes #30859
1 parent dde0763 commit 1d1d33f
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2434 | 2434 | | |
2435 | 2435 | | |
2436 | 2436 | | |
| 2437 | + | |
2437 | 2438 | | |
2438 | 2439 | | |
2439 | 2440 | | |
| |||
2638 | 2639 | | |
2639 | 2640 | | |
2640 | 2641 | | |
2641 | | - | |
2642 | | - | |
2643 | 2642 | | |
2644 | 2643 | | |
2645 | 2644 | | |
2646 | 2645 | | |
2647 | 2646 | | |
2648 | | - | |
2649 | | - | |
2650 | 2647 | | |
2651 | 2648 | | |
2652 | 2649 | | |
| |||
2661 | 2658 | | |
2662 | 2659 | | |
2663 | 2660 | | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
2664 | 2678 | | |
2665 | 2679 | | |
2666 | 2680 | | |
| |||
0 commit comments