File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212var createContour2D = require ( 'gl-contour2d' ) ;
1313var createHeatmap2D = require ( 'gl-heatmap2d' ) ;
1414
15+ var Axes = require ( '../../plots/cartesian/axes' ) ;
1516var makeColorMap = require ( '../contour/make_color_map' ) ;
1617var str2RGBArray = require ( '../../lib/str2rgbarray' ) ;
1718
@@ -96,7 +97,6 @@ proto.update = function(fullTrace, calcTrace) {
9697 this . contourOptions . x = this . heatmapOptions . x = calcPt . x ;
9798 this . contourOptions . y = this . heatmapOptions . y = calcPt . y ;
9899
99-
100100 // pass on fill information
101101 if ( fullTrace . contours . coloring === 'fill' ) {
102102 colorOptions = convertColorScale ( fullTrace , { fill : true } ) ;
@@ -118,6 +118,10 @@ proto.update = function(fullTrace, calcTrace) {
118118
119119 this . contour . update ( this . contourOptions ) ;
120120 this . heatmap . update ( this . heatmapOptions ) ;
121+
122+ // expand axes
123+ Axes . expand ( this . scene . xaxis , calcPt . x ) ;
124+ Axes . expand ( this . scene . yaxis , calcPt . y ) ;
121125} ;
122126
123127proto . dispose = function ( ) {
Original file line number Diff line number Diff line change 1010'use strict' ;
1111
1212var createHeatmap2D = require ( 'gl-heatmap2d' ) ;
13-
13+ var Axes = require ( '../../plots/cartesian/axes' ) ;
1414var str2RGBArray = require ( '../../lib/str2rgbarray' ) ;
1515
1616
@@ -87,6 +87,9 @@ proto.update = function(fullTrace, calcTrace) {
8787 this . textLabels = [ ] . concat . apply ( [ ] , fullTrace . text ) ;
8888
8989 this . heatmap . update ( this . options ) ;
90+
91+ Axes . expand ( this . scene . xaxis , calcPt . x ) ;
92+ Axes . expand ( this . scene . yaxis , calcPt . y ) ;
9093} ;
9194
9295proto . dispose = function ( ) {
You can’t perform that action at this time.
0 commit comments