File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -375,28 +375,27 @@ proto.drawAxes = function(doTitles) {
375375 }
376376 } ) ;
377377
378- var btitleSize = baxis . titlefont . size ,
379- bpad = ( baxis . showticklabels ? baxis . tickfont . size : 0 ) +
380- ( baxis . ticks === 'outside' ? baxis . ticklen : 0 ) + 3 ;
378+ var bpad = ( baxis . showticklabels ? baxis . tickfont . size : 0 ) +
379+ ( baxis . ticks === 'outside' ? baxis . ticklen : 0 ) + 3 ;
380+
381381 Titles . draw ( gd , 'b' + titlesuffix , {
382382 propContainer : baxis ,
383383 propName : _this . id + '.baxis.title' ,
384384 dfltName : 'Component B' ,
385385 attributes : {
386386 x : _this . x0 - bpad ,
387- y : _this . y0 + _this . h + btitleSize * 0.83 + bpad ,
387+ y : _this . y0 + _this . h + baxis . titlefont . size * 0.83 + bpad ,
388388 'text-anchor' : 'middle'
389389 }
390390 } ) ;
391391
392- var ctitleSize = caxis . titlefont . size ;
393392 Titles . draw ( gd , 'c' + titlesuffix , {
394393 propContainer : caxis ,
395394 propName : _this . id + '.caxis.title' ,
396395 dfltName : 'Component C' ,
397396 attributes : {
398397 x : _this . x0 + _this . w + bpad ,
399- y : _this . y0 + _this . h + ctitleSize * 0.83 + bpad ,
398+ y : _this . y0 + _this . h + caxis . titlefont . size * 0.83 + bpad ,
400399 'text-anchor' : 'middle'
401400 }
402401 } ) ;
You can’t perform that action at this time.
0 commit comments