Commit 07127b6
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 07127b6
3 files changed
Lines changed: 55 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6511 | 6511 | | |
6512 | 6512 | | |
6513 | 6513 | | |
| 6514 | + | |
| 6515 | + | |
| 6516 | + | |
| 6517 | + | |
| 6518 | + | |
| 6519 | + | |
| 6520 | + | |
| 6521 | + | |
| 6522 | + | |
| 6523 | + | |
| 6524 | + | |
| 6525 | + | |
| 6526 | + | |
| 6527 | + | |
| 6528 | + | |
| 6529 | + | |
| 6530 | + | |
| 6531 | + | |
| 6532 | + | |
| 6533 | + | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
| 6542 | + | |
| 6543 | + | |
| 6544 | + | |
6514 | 6545 | | |
6515 | 6546 | | |
6516 | 6547 | | |
| |||
0 commit comments