Skip to content

Commit

Permalink
Merge pull request #7150 from my-tien/zorder-fix-axes-images
Browse files Browse the repository at this point in the history
Fix hiding of axis lines and of images
  • Loading branch information
archmoj committed Sep 16, 2024
2 parents c4f285e + cd6b1ae commit 73bac89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/images/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var Drawing = require('../drawing');
var Axes = require('../../plots/cartesian/axes');
var axisIds = require('../../plots/cartesian/axis_ids');
var xmlnsNamespaces = require('../../constants/xmlns_namespaces');
var zindexSeparator = require('../../plots/cartesian/constants').zindexSeparator;

module.exports = function draw(gd) {
var fullLayout = gd._fullLayout;
Expand Down Expand Up @@ -226,6 +227,9 @@ module.exports = function draw(gd) {
var allSubplots = Object.keys(fullLayout._plots);
for(i = 0; i < allSubplots.length; i++) {
subplot = allSubplots[i];
if (subplot.indexOf(zindexSeparator) !== -1) {
continue;
}
var subplotObj = fullLayout._plots[subplot];

// filter out overlaid plots (which have their images on the main plot)
Expand Down
3 changes: 3 additions & 0 deletions src/plot_api/subroutines.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ function lsInner(gd) {
}

for(subplot in fullLayout._plots) {
if (subplot.indexOf(zindexSeparator) !== -1) {
continue;
}
plotinfo = fullLayout._plots[subplot];
xa = plotinfo.xaxis;
ya = plotinfo.yaxis;
Expand Down

0 comments on commit 73bac89

Please sign in to comment.