Commit 4541b46
committed
Preserve multi-panel figure size in visual-test compare()
`compare()` previously forced every figure into a single 5-inch canvas with
constrained layout. For multi-panel figures (e.g. scanpy-style color=[...] or
multiple coordinate systems) this crammed the panels together and pushed each
panel's per-axis colorbar/legend into the neighbouring panel.
Only normalize size + layout for single-panel figures (count gridspec-placed
axes; colorbar/legend insets have no subplotspec). Multi-panel figures keep
their own size and spacing; the thumbnail is produced by the existing resize
step. Single-panel baselines are unaffected; multi-panel baselines are
regenerated.1 parent 0f01e84 commit 4541b46
1 file changed
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
514 | 520 | | |
515 | | - | |
| 521 | + | |
516 | 522 | | |
517 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
518 | 527 | | |
519 | 528 | | |
520 | 529 | | |
| |||
0 commit comments