Skip to content

Commit 73bac89

Browse files
authored
Merge pull request #7150 from my-tien/zorder-fix-axes-images
Fix hiding of axis lines and of images
2 parents c4f285e + cd6b1ae commit 73bac89

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/components/images/draw.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var Drawing = require('../drawing');
55
var Axes = require('../../plots/cartesian/axes');
66
var axisIds = require('../../plots/cartesian/axis_ids');
77
var xmlnsNamespaces = require('../../constants/xmlns_namespaces');
8+
var zindexSeparator = require('../../plots/cartesian/constants').zindexSeparator;
89

910
module.exports = function draw(gd) {
1011
var fullLayout = gd._fullLayout;
@@ -226,6 +227,9 @@ module.exports = function draw(gd) {
226227
var allSubplots = Object.keys(fullLayout._plots);
227228
for(i = 0; i < allSubplots.length; i++) {
228229
subplot = allSubplots[i];
230+
if (subplot.indexOf(zindexSeparator) !== -1) {
231+
continue;
232+
}
229233
var subplotObj = fullLayout._plots[subplot];
230234

231235
// filter out overlaid plots (which have their images on the main plot)

src/plot_api/subroutines.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ function lsInner(gd) {
258258
}
259259

260260
for(subplot in fullLayout._plots) {
261+
if (subplot.indexOf(zindexSeparator) !== -1) {
262+
continue;
263+
}
261264
plotinfo = fullLayout._plots[subplot];
262265
xa = plotinfo.xaxis;
263266
ya = plotinfo.yaxis;

0 commit comments

Comments
 (0)