We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1f549f commit 1c09a52Copy full SHA for 1c09a52
src/plots/plots.js
@@ -1935,7 +1935,12 @@ plots.doAutoMargin = function(gd) {
1935
} else {
1936
fullLayout._redrawFromAutoMarginCount = 1;
1937
}
1938
- return Registry.call('plot', gd);
+
1939
+ if(fullLayout._redrawFromAutoMarginCount < 10) {
1940
+ return Registry.call('plot', gd);
1941
+ } else {
1942
+ console.log('off limit', fullLayout._redrawFromAutoMarginCount)
1943
+ }
1944
1945
};
1946
@@ -1949,6 +1954,7 @@ plots.didMarginChange = function(margin0, margin1) {
1949
1954
// use 1px tolerance in case we old/new differ only
1950
1955
// by rounding errors, which can lead to infinite loops
1951
1956
if(!isNumeric(m0) || Math.abs(m1 - m0) > 1) {
1957
+ console.log('margin changed by', Math.abs(m1 - m0))
1952
1958
return true;
1953
1959
1960
0 commit comments