File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11
11
var d3 = require ( 'd3' ) ;
12
12
var Drawing = require ( '../drawing' ) ;
13
13
var Axes = require ( '../../plots/cartesian/axes' ) ;
14
+ var axisIds = require ( '../../plots/cartesian/axis_ids' ) ;
14
15
var xmlnsNamespaces = require ( '../../constants/xmlns_namespaces' ) ;
15
16
16
17
module . exports = function draw ( gd ) {
@@ -27,7 +28,7 @@ module.exports = function draw(gd) {
27
28
28
29
if ( img . visible ) {
29
30
if ( img . layer === 'below' && img . xref !== 'paper' && img . yref !== 'paper' ) {
30
- subplot = img . xref + img . yref ;
31
+ subplot = axisIds . ref2id ( img . xref ) + axisIds . ref2id ( img . yref ) ;
31
32
32
33
var plotinfo = fullLayout . _plots [ subplot ] ;
33
34
@@ -205,8 +206,8 @@ module.exports = function draw(gd) {
205
206
206
207
207
208
// Set proper clipping on images
208
- var xId = xa ? xa . _id : '' ;
209
- var yId = ya ? ya . _id : '' ;
209
+ var xId = xa && ( Axes . getRefType ( d . xref ) != 'domain' ) ? xa . _id : '' ;
210
+ var yId = ya && ( Axes . getRefType ( d . yref ) != 'domain' ) ? ya . _id : '' ;
210
211
var clipAxes = xId + yId ;
211
212
212
213
Drawing . setClipUrl (
You can’t perform that action at this time.
0 commit comments