@@ -36,7 +36,9 @@ function Scene2D(options, fullLayout) {
36
36
37
37
this . fullLayout = fullLayout ;
38
38
this . fullData = null ;
39
- this . updateAxes ( fullLayout ) ;
39
+ this . xaxis = null ;
40
+ this . yaxis = null ;
41
+ this . updateAxes ( ) ;
40
42
41
43
this . makeFramework ( ) ;
42
44
@@ -278,22 +280,20 @@ function compareTicks(a, b) {
278
280
return false ;
279
281
}
280
282
281
- proto . updateAxes = function ( options ) {
283
+ proto . updateAxes = function ( ) {
282
284
var spmatch = Axes . subplotMatch ,
283
285
xaxisName = 'xaxis' + this . id . match ( spmatch ) [ 1 ] ,
284
286
yaxisName = 'yaxis' + this . id . match ( spmatch ) [ 2 ] ;
285
287
286
- this . xaxis = options [ xaxisName ] ;
287
- this . yaxis = options [ yaxisName ] ;
288
+ this . xaxis = this . fullLayout [ xaxisName ] ;
289
+ this . yaxis = this . fullLayout [ yaxisName ] ;
288
290
} ;
289
291
290
292
proto . updateFx = function ( options ) {
291
293
var fullLayout = this . fullLayout ;
292
294
293
295
fullLayout . dragmode = options . dragmode ;
294
296
fullLayout . hovermode = options . hovermode ;
295
-
296
- this . graphDiv . _fullLayout = fullLayout ;
297
297
} ;
298
298
299
299
function relayoutCallback ( scene ) {
@@ -375,7 +375,7 @@ proto.plot = function(fullData, calcData, fullLayout) {
375
375
var glplot = this . glplot ;
376
376
377
377
this . fullLayout = fullLayout ;
378
- this . updateAxes ( fullLayout ) ;
378
+ this . updateAxes ( ) ;
379
379
this . updateTraces ( fullData , calcData ) ;
380
380
381
381
var width = fullLayout . width ,
0 commit comments