@@ -113,14 +113,14 @@ proto.merge = function(options) {
113
113
// '_name' is e.g. xaxis, xaxis2, yaxis, yaxis4 ...
114
114
ax = options [ this . scene [ axisName ] . _name ] ;
115
115
116
- axTitle = ax . title === this . scene . fullLayout . _dfltTitle [ axisLetter ] ? '' : ax . title ;
116
+ axTitle = ax . title . text === this . scene . fullLayout . _dfltTitle [ axisLetter ] ? '' : ax . title . text ;
117
117
118
118
for ( j = 0 ; j <= 2 ; j += 2 ) {
119
119
this . labelEnable [ i + j ] = false ;
120
120
this . labels [ i + j ] = axTitle ;
121
- this . labelColor [ i + j ] = str2RGBArray ( ax . titlefont . color ) ;
122
- this . labelFont [ i + j ] = ax . titlefont . family ;
123
- this . labelSize [ i + j ] = ax . titlefont . size ;
121
+ this . labelColor [ i + j ] = str2RGBArray ( ax . title . font . color ) ;
122
+ this . labelFont [ i + j ] = ax . title . font . family ;
123
+ this . labelSize [ i + j ] = ax . title . font . size ;
124
124
this . labelPad [ i + j ] = this . getLabelPad ( axisName , ax ) ;
125
125
126
126
this . tickEnable [ i + j ] = false ;
@@ -208,7 +208,7 @@ proto.hasAxisInAltrPos = function(axisName, ax) {
208
208
209
209
proto . getLabelPad = function ( axisName , ax ) {
210
210
var offsetBase = 1.5 ,
211
- fontSize = ax . titlefont . size ,
211
+ fontSize = ax . title . font . size ,
212
212
showticklabels = ax . showticklabels ;
213
213
214
214
if ( axisName === 'xaxis' ) {
0 commit comments