@@ -272,6 +272,7 @@ exports.lsInner = function(gd) {
272
272
* -----
273
273
* x2
274
274
*/
275
+ var xPath = 'M0,0' ;
275
276
if ( shouldShowLinesOrTicks ( xa , subplot ) ) {
276
277
leftYLineWidth = findCounterAxisLineWidth ( xa , 'left' , ya , axList ) ;
277
278
xLinesXLeft = xa . _offset - ( leftYLineWidth ? ( pad + leftYLineWidth ) : 0 ) ;
@@ -288,17 +289,17 @@ exports.lsInner = function(gd) {
288
289
xa . _linepositions [ subplot ] = [ xLinesYBottom , xLinesYTop ] ;
289
290
}
290
291
291
- var xPath = mainPath ( xa , xLinePath , xLinePathFree ) ;
292
+ xPath = mainPath ( xa , xLinePath , xLinePathFree ) ;
292
293
if ( extraSubplot && xa . showline && ( xa . mirror === 'all' || xa . mirror === 'allticks' ) ) {
293
294
xPath += xLinePath ( xLinesYBottom ) + xLinePath ( xLinesYTop ) ;
294
295
}
295
296
296
297
plotinfo . xlines
297
- . attr ( 'd' , xPath || 'M0,0' )
298
298
. style ( 'stroke-width' , xa . _lw + 'px' )
299
299
. call ( Color . stroke , xa . showline ?
300
300
xa . linecolor : 'rgba(0,0,0,0)' ) ;
301
301
}
302
+ plotinfo . xlines . attr ( 'd' , xPath ) ;
302
303
303
304
/*
304
305
* y lines that meet x axes get longer only by margin.pad, because
@@ -311,6 +312,7 @@ exports.lsInner = function(gd) {
311
312
* |
312
313
* +-----
313
314
*/
315
+ var yPath = 'M0,0' ;
314
316
if ( shouldShowLinesOrTicks ( ya , subplot ) ) {
315
317
connectYBottom = findCounterAxisLineWidth ( ya , 'bottom' , xa , axList ) ;
316
318
yLinesYBottom = ya . _offset + ya . _length + ( connectYBottom ? pad : 0 ) ;
@@ -324,17 +326,17 @@ exports.lsInner = function(gd) {
324
326
ya . _linepositions [ subplot ] = [ yLinesXLeft , yLinesXRight ] ;
325
327
}
326
328
327
- var yPath = mainPath ( ya , yLinePath , yLinePathFree ) ;
329
+ yPath = mainPath ( ya , yLinePath , yLinePathFree ) ;
328
330
if ( extraSubplot && ya . showline && ( ya . mirror === 'all' || ya . mirror === 'allticks' ) ) {
329
331
yPath += yLinePath ( yLinesXLeft ) + yLinePath ( yLinesXRight ) ;
330
332
}
331
333
332
334
plotinfo . ylines
333
- . attr ( 'd' , yPath || 'M0,0' )
334
335
. style ( 'stroke-width' , ya . _lw + 'px' )
335
336
. call ( Color . stroke , ya . showline ?
336
337
ya . linecolor : 'rgba(0,0,0,0)' ) ;
337
338
}
339
+ plotinfo . ylines . attr ( 'd' , yPath ) ;
338
340
} ) ;
339
341
340
342
Plotly . Axes . makeClipPaths ( gd ) ;
0 commit comments