-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Added _make_colorscale method and 2D Density Plot #518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
https://plot.ly/python/reference/#mesh3d-colorscale | ||
""" | ||
colorscale = [] | ||
diff = 1./(len(colors) - 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐄 diff
? I don't understand this variable name?
🐅 please for the |
@Kully Any screenshots? |
@theengineear @jackparmer Tests Passed. |
colorscale.append([j * diff, colors[j]]) | ||
return colorscale | ||
scale = 1./(len(colors) - 1) | ||
return[[i * scale, color] for i, color in enumerate(colors)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Grrrrrrreat. 💃 |
Wonderful, thanks for this. I will also get cracking on that redoing of the colorscale code to make sure that I am indeed using the correct PLOTLY_COLORSCALE, etc, etc, etc |
@theengineear @jackparmer
No new tests since
validate_colors
is already covered by another set of tests.