Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c6e3d64

Browse filesBrowse files
committed
src/traces/heatmap/make_bound_array.js
1 parent a58069a commit c6e3d64
Copy full SHA for c6e3d64

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed

‎src/traces/heatmap/make_bound_array.js

Copy file name to clipboardExpand all lines: src/traces/heatmap/make_bound_array.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
77
var arrayOut = [];
88
var isContour = Registry.traceIs(trace, 'contour');
99
var isHist = Registry.traceIs(trace, 'histogram');
10-
var isGL2D = Registry.traceIs(trace, 'gl2d');
1110
var v0;
1211
var dv;
1312
var i;
@@ -22,7 +21,7 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
2221
// and extend it linearly based on the last two points
2322
if(len <= numbricks) {
2423
// contour plots only want the centers
25-
if(isContour || isGL2D) arrayOut = Array.from(arrayIn).slice(0, numbricks);
24+
if(isContour) arrayOut = Array.from(arrayIn).slice(0, numbricks);
2625
else if(numbricks === 1) {
2726
if(ax.type === 'log') {
2827
arrayOut = [0.5 * arrayIn[0], 2 * arrayIn[0]];
@@ -93,7 +92,7 @@ module.exports = function makeBoundArray(trace, arrayIn, v0In, dvIn, numbricks,
9392

9493
dv = dvIn || 1;
9594

96-
for(i = (isContour || isGL2D) ? 0 : -0.5; i < numbricks; i++) {
95+
for(i = isContour ? 0 : -0.5; i < numbricks; i++) {
9796
arrayOut.push(v0 + dv * i);
9897
}
9998
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.