Repository navigation
Commit aa298cd
fix: honor aspect='auto' in px.imshow for RGB images
plotly.js anchors the y axis of an image trace to its x axis by default, so px.imshow kept square pixels for RGB and RGBA images even with aspect='auto'. Set scaleanchor=False on every y axis in that case.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 3fbc0c7 commit aa298cd
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
631 | 631 | | |
632 | 632 | | |
633 | 633 | | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
634 | 637 | | |
635 | 638 | | |
636 | 639 | | |
| |||
0 commit comments