Skip to content

Commit e9061a4

Browse files
committed
src/traces/heatmap/calc.js
1 parent 0accd7b commit e9061a4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/traces/heatmap/calc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = function calc(gd, trace) {
2121
var ya = Axes.getFromId(gd, trace.yaxis || 'y');
2222
var isContour = Registry.traceIs(trace, 'contour');
2323
var isHist = Registry.traceIs(trace, 'histogram');
24-
var isGL2D = Registry.traceIs(trace, 'gl2d');
2524
var zsmooth = isContour ? 'best' : trace.zsmooth;
2625
var x, x0, dx, origX;
2726
var y, y0, dy, origY;
@@ -124,11 +123,8 @@ module.exports = function calc(gd, trace) {
124123
var yIn = trace.ytype === 'scaled' ? '' : y;
125124
var yArray = makeBoundArray(trace, yIn, y0, dy, z.length, ya);
126125

127-
// handled in gl2d convert step
128-
if(!isGL2D) {
129-
trace._extremes[xa._id] = Axes.findExtremes(xa, xArray);
130-
trace._extremes[ya._id] = Axes.findExtremes(ya, yArray);
131-
}
126+
trace._extremes[xa._id] = Axes.findExtremes(xa, xArray);
127+
trace._extremes[ya._id] = Axes.findExtremes(ya, yArray);
132128

133129
var cd0 = {
134130
x: xArray,

0 commit comments

Comments
 (0)