Commit 21c779d
committed
Reset forced minimum tick spacing on every calc pass
setConvert cleared ax._minDtick / ax._forceTick0 so each calc pass would
start over, but the cleanup never had any effect: setConvert runs while
supplyDefaults builds the new _fullLayout, where the keys do not exist
yet, and relinkPrivateKeys then copies the old values back onto it.
Axes.minDtick treats 0 as "forcing cancelled", so the 0 written by
whichever figure was drawn first survived every later update and vetoed
the forcing for every figure after it. Reacting from a scatter to a box
plot lost the one-tick-per-box spacing, while newPlot of the same figure
kept it.
Move the reset into ax.clearCalc, the axis' own per-calc-pass reset,
which doCalcdata runs for every axis before any cross-trace calc.1 parent 21da158 commit 21c779d
3 files changed
Lines changed: 48 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
952 | 952 | | |
953 | 953 | | |
954 | 954 | | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
955 | 961 | | |
956 | 962 | | |
957 | 963 | | |
| |||
1024 | 1030 | | |
1025 | 1031 | | |
1026 | 1032 | | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | 1033 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8303 | 8303 | | |
8304 | 8304 | | |
8305 | 8305 | | |
| 8306 | + | |
| 8307 | + | |
| 8308 | + | |
| 8309 | + | |
| 8310 | + | |
| 8311 | + | |
| 8312 | + | |
| 8313 | + | |
| 8314 | + | |
| 8315 | + | |
| 8316 | + | |
| 8317 | + | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
| 8321 | + | |
| 8322 | + | |
| 8323 | + | |
| 8324 | + | |
| 8325 | + | |
| 8326 | + | |
| 8327 | + | |
| 8328 | + | |
| 8329 | + | |
| 8330 | + | |
| 8331 | + | |
| 8332 | + | |
| 8333 | + | |
| 8334 | + | |
| 8335 | + | |
| 8336 | + | |
| 8337 | + | |
| 8338 | + | |
| 8339 | + | |
| 8340 | + | |
| 8341 | + | |
| 8342 | + | |
| 8343 | + | |
| 8344 | + | |
8306 | 8345 | | |
8307 | 8346 | | |
8308 | 8347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
| 1652 | + | |
| 1653 | + | |
1653 | 1654 | | |
1654 | 1655 | | |
1655 | 1656 | | |
| |||
0 commit comments