We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a7f47 commit 579dcb2Copy full SHA for 579dcb2
src/traces/surface/convert.js
@@ -248,6 +248,8 @@ proto.update = function(data) {
248
opacity: 1
249
};
250
251
+ params.intensityBounds = [data.cmin, data.cmax];
252
+
253
//Refine if necessary
254
if(data.surfacecolor) {
255
var intensity = ndarray(
@@ -257,6 +259,12 @@ proto.update = function(data) {
257
259
});
258
260
coords.push(intensity);
261
}
262
+ else {
263
+ // when 'z' is used as 'intensity',
264
+ // we must scale its value
265
+ params.intensityBounds[0] *= scaleFactor[2];
266
+ params.intensityBounds[1] *= scaleFactor[2];
267
+ }
268
269
this.dataScale = refine(coords);
270
0 commit comments