@@ -36,7 +36,9 @@ function Scene2D(options, fullLayout) {
3636
3737 this . fullLayout = fullLayout ;
3838 this . fullData = null ;
39- this . updateAxes ( fullLayout ) ;
39+ this . xaxis = null ;
40+ this . yaxis = null ;
41+ this . updateAxes ( ) ;
4042
4143 this . makeFramework ( ) ;
4244
@@ -278,22 +280,20 @@ function compareTicks(a, b) {
278280 return false ;
279281}
280282
281- proto . updateAxes = function ( options ) {
283+ proto . updateAxes = function ( ) {
282284 var spmatch = Axes . subplotMatch ,
283285 xaxisName = 'xaxis' + this . id . match ( spmatch ) [ 1 ] ,
284286 yaxisName = 'yaxis' + this . id . match ( spmatch ) [ 2 ] ;
285287
286- this . xaxis = options [ xaxisName ] ;
287- this . yaxis = options [ yaxisName ] ;
288+ this . xaxis = this . fullLayout [ xaxisName ] ;
289+ this . yaxis = this . fullLayout [ yaxisName ] ;
288290} ;
289291
290292proto . updateFx = function ( options ) {
291293 var fullLayout = this . fullLayout ;
292294
293295 fullLayout . dragmode = options . dragmode ;
294296 fullLayout . hovermode = options . hovermode ;
295-
296- this . graphDiv . _fullLayout = fullLayout ;
297297} ;
298298
299299function relayoutCallback ( scene ) {
@@ -375,7 +375,7 @@ proto.plot = function(fullData, calcData, fullLayout) {
375375 var glplot = this . glplot ;
376376
377377 this . fullLayout = fullLayout ;
378- this . updateAxes ( fullLayout ) ;
378+ this . updateAxes ( ) ;
379379 this . updateTraces ( fullData , calcData ) ;
380380
381381 var width = fullLayout . width ,
0 commit comments