Commit f90c147
committed
TST/BUG: Fix _datalim_only semantics and add user-facing relim test
_set_in_autoscale(True) must not be called for collections added with
autolim='_datalim_only' — that sentinel means 'update datalim once but
do not enter the autoscale/relim system'. Previously, because the call
was outside the if autolim: block, bool('_datalim_only') == True meant
3D collections inadvertently got _in_autoscale=True. Fixed by gating
the call on autolim != '_datalim_only', consistent with the existing
_request_autoscale_view guard directly below.
Also add test_relim_collection_autoscale_view: an end-to-end regression
that checks ax.get_xlim()/get_ylim() after relim()+autoscale_view(),
matching the exact user-facing scenario from GH#30859.1 parent a1c58ec commit f90c147
2 files changed
Lines changed: 18 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2418 | 2418 | | |
2419 | 2419 | | |
2420 | 2420 | | |
2421 | | - | |
| 2421 | + | |
| 2422 | + | |
2422 | 2423 | | |
2423 | 2424 | | |
2424 | 2425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6568 | 6568 | | |
6569 | 6569 | | |
6570 | 6570 | | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
| 6585 | + | |
| 6586 | + | |
6571 | 6587 | | |
6572 | 6588 | | |
6573 | 6589 | | |
| |||
0 commit comments