Skip to content

Commit a02dd11

Browse files
committed
fixup cmin/cmax -> vertexIntensityBounds
1 parent e4a2035 commit a02dd11

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/traces/cone/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function convert(scene, trace) {
100100
}
101101

102102
coneOpts.colormap = parseColorScale(trace.colorscale);
103-
coneOpts.vertexIntensityBounds = [trace.cmin / trace.cmax, 1];
103+
coneOpts.vertexIntensityBounds = [trace.cmin / trace._normMax, trace.cmax / trace._normMax];
104104

105105
coneOpts[sizeMode2sizeKey[trace.sizemode]] = trace.sizeref;
106106
coneOpts.coneOffset = anchor2coneOffset[trace.anchor];
668 Bytes
Loading

test/image/mocks/gl3d_cone-wind.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129166,7 +129166,7 @@
129166129166
],
129167129167
"colorscale": "Viridis",
129168129168
"cmin": 0,
129169-
"cmax": 1
129169+
"cmax": 100,
129170129170
"hoverinfo": "u+v+w+text",
129171129171
"text": "-> wind <-"
129172129172
}

0 commit comments

Comments
 (0)