File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
var createContour2D = require ( 'gl-contour2d' ) ;
13
13
var createHeatmap2D = require ( 'gl-heatmap2d' ) ;
14
14
15
+ var Axes = require ( '../../plots/cartesian/axes' ) ;
15
16
var makeColorMap = require ( '../contour/make_color_map' ) ;
16
17
var str2RGBArray = require ( '../../lib/str2rgbarray' ) ;
17
18
@@ -96,7 +97,6 @@ proto.update = function(fullTrace, calcTrace) {
96
97
this . contourOptions . x = this . heatmapOptions . x = calcPt . x ;
97
98
this . contourOptions . y = this . heatmapOptions . y = calcPt . y ;
98
99
99
-
100
100
// pass on fill information
101
101
if ( fullTrace . contours . coloring === 'fill' ) {
102
102
colorOptions = convertColorScale ( fullTrace , { fill : true } ) ;
@@ -118,6 +118,10 @@ proto.update = function(fullTrace, calcTrace) {
118
118
119
119
this . contour . update ( this . contourOptions ) ;
120
120
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 ) ;
121
125
} ;
122
126
123
127
proto . dispose = function ( ) {
Original file line number Diff line number Diff line change 10
10
'use strict' ;
11
11
12
12
var createHeatmap2D = require ( 'gl-heatmap2d' ) ;
13
-
13
+ var Axes = require ( '../../plots/cartesian/axes' ) ;
14
14
var str2RGBArray = require ( '../../lib/str2rgbarray' ) ;
15
15
16
16
@@ -87,6 +87,9 @@ proto.update = function(fullTrace, calcTrace) {
87
87
this . textLabels = [ ] . concat . apply ( [ ] , fullTrace . text ) ;
88
88
89
89
this . heatmap . update ( this . options ) ;
90
+
91
+ Axes . expand ( this . scene . xaxis , calcPt . x ) ;
92
+ Axes . expand ( this . scene . yaxis , calcPt . y ) ;
90
93
} ;
91
94
92
95
proto . dispose = function ( ) {
You can’t perform that action at this time.
0 commit comments