Commit 2321eab
Saumya
FIX: Prevent warning when clearing axes with shared non-linear scale
When clearing an axes (via cla() or clf()) that has a shared axis
with a non-linear scale (e.g., log, logit), a warning was incorrectly
generated: 'Attempt to set non-positive xlim on a log-scaled axis
will be ignored.'
This occurred because the clear operation set default limits (0, 1)
with emit=True, causing the limits to propagate to shared axes that
still had non-linear scales which reject these limits.
Fixed by using emit=False when setting default limits during clear,
preventing propagation to shared axes.
Fixes #99701 parent 702c669 commit 2321eab
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1422 | 1425 | | |
1423 | 1426 | | |
1424 | 1427 | | |
1425 | 1428 | | |
1426 | 1429 | | |
1427 | | - | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1428 | 1434 | | |
1429 | 1435 | | |
1430 | 1436 | | |
| |||
0 commit comments