Skip to content

Commit ee97962

Browse files
add mirrorPush filtering
1 parent cf26237 commit ee97962

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/cartesian/axes.js

+3
Original file line numberDiff line numberDiff line change
@@ -2632,6 +2632,7 @@ axes.drawOne = function(gd, ax, opts) {
26322632

26332633
if(typeof ax.automargin === 'string') {
26342634
filterPush(push, ax.automargin);
2635+
filterPush(mirrorPush, ax.automargin);
26352636
}
26362637

26372638
Plots.autoMargin(gd, axAutoMarginID(ax), push);
@@ -2649,6 +2650,8 @@ axes.drawOne = function(gd, ax, opts) {
26492650
};
26502651

26512652
function filterPush(push, automargin) {
2653+
if(!push) return push;
2654+
26522655
var keepMargin = [];
26532656

26542657
Object.keys(MARGIN_MAPPING).forEach(function(key) {

0 commit comments

Comments
 (0)