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 9d5d65d

Browse filesBrowse files
committed
fix
1 parent 94dff5c commit 9d5d65d
Copy full SHA for 9d5d65d

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/traces/image/defaults.js

Copy file name to clipboardExpand all lines: src/traces/image/defaults.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module.exports = function supplyDefaults(traceIn, traceOut) {
2424
coerce('z');
2525
coerce('colormodel');
2626

27-
coerce('zmin', constants.colormodel[traceOut.colormodel][0]);
28-
coerce('zmax', constants.colormodel[traceOut.colormodel][1]);
27+
coerce('zmin', constants.colormodel[traceOut.colormodel].min);
28+
coerce('zmax', constants.colormodel[traceOut.colormodel].max);
2929
var dims = traceOut.colormodel.length;
3030
var dfltHovertemplate = '<span style="text-transform:uppercase">%{colormodel}</span>: [%{z[0]}, %{z[1]}, %{z[2]}' + (dims === 4 ? ', %{z[3]}' : '') + ']';
3131
coerce('hovertemplate', dfltHovertemplate);

0 commit comments

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