Repository navigation
Commit ff311c5
committed
fix #8117 - don't reuse stale zmin/zmax for autocontour when coloring is 'none'
With `contours.coloring: 'none'` the colorscale attributes are not coerced,
so `zauto` is undefined on the full trace. After `Plotly.react`,
`relinkPrivateKeys` + `Colorscale.crossTraceDefaults` put the previous
`_zmin`/`_zmax` back onto `zmin`/`zmax`, and `setContours` used them because
`trace.zauto` was falsy. Treat an undefined `zauto` as auto, as
`Colorscale.calc` already does.1 parent 1ef3c78 commit ff311c5
2 files changed
Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
625 | 654 | | |
626 | 655 | | |
627 | 656 | | |
| |||
0 commit comments