@@ -237,13 +237,13 @@ function makePadFn(ax, max) {
237
237
238
238
var TEXTPAD = 3 ;
239
239
240
- function adjustPadForInsideLabelsOnThisAxis ( extrappad , ax , max ) {
240
+ function adjustPadForInsideLabelsOnThisAxis ( pad , ax , max ) {
241
241
var ticklabelposition = ax . ticklabelposition || '' ;
242
242
var has = function ( str ) {
243
243
return ticklabelposition . indexOf ( str ) !== - 1 ;
244
244
} ;
245
245
246
- if ( ! has ( 'inside' ) ) return extrappad ;
246
+ if ( ! has ( 'inside' ) ) return pad ;
247
247
var isTop = has ( 'top' ) ;
248
248
var isLeft = has ( 'left' ) ;
249
249
var isRight = has ( 'right' ) ;
@@ -254,7 +254,7 @@ function adjustPadForInsideLabelsOnThisAxis(extrappad, ax, max) {
254
254
( max && ( isLeft || isBottom ) ) ||
255
255
( ! max && ( isRight || isTop ) )
256
256
) {
257
- return extrappad ;
257
+ return pad ;
258
258
}
259
259
260
260
// increase padding to make more room for inside tick labels of the axis
@@ -269,12 +269,12 @@ function adjustPadForInsideLabelsOnThisAxis(extrappad, ax, max) {
269
269
270
270
morePad += TEXTPAD ;
271
271
272
- extrappad = Math . max ( extrappad , morePad ) ;
272
+ pad = Math . max ( pad , morePad ) ;
273
273
274
- return extrappad ;
274
+ return pad ;
275
275
}
276
276
277
- function adjustPadForInsideLabelsOnAnchorAxis ( extrappad , ax , max ) {
277
+ function adjustPadForInsideLabelsOnAnchorAxis ( pad , ax , max ) {
278
278
var anchorAxis = ( ax . _anchorAxis || { } ) ;
279
279
if ( ( anchorAxis . ticklabelposition || '' ) . indexOf ( 'inside' ) !== - 1 ) {
280
280
// increase padding to make more room for inside tick labels of the counter axis
@@ -318,11 +318,11 @@ function adjustPadForInsideLabelsOnAnchorAxis(extrappad, ax, max) {
318
318
morePad += anchorAxis . ticklen || 0 ;
319
319
}
320
320
321
- extrappad = Math . max ( extrappad , morePad ) ;
321
+ pad = Math . max ( pad , morePad ) ;
322
322
}
323
323
}
324
324
325
- return extrappad ;
325
+ return pad ;
326
326
}
327
327
328
328
function concatExtremes ( gd , ax , noMatch ) {
0 commit comments