Skip to content

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

Merged
merged 7 commits into from
Jul 14, 2016
Merged

Added _make_colorscale method and 2D Density Plot #518

merged 7 commits into from
Jul 14, 2016

Conversation

Kully
Copy link
Contributor

@Kully Kully commented Jul 5, 2016

@theengineear @jackparmer

No new tests since validate_colors is already covered by another set of tests.

https://plot.ly/python/reference/#mesh3d-colorscale
"""
colorscale = []
diff = 1./(len(colors) - 1)
Copy link
Contributor

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?

@theengineear
Copy link
Contributor

🐅 please for the create_2D_density 😺

@jackparmer
Copy link
Contributor

@Kully Any screenshots?

@Kully
Copy link
Contributor Author

Kully commented Jul 6, 2016

Forgot to post this; downloaded yesterday:

use-parameters

@Kully
Copy link
Contributor Author

Kully commented Jul 11, 2016

@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)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@theengineear
Copy link
Contributor

Grrrrrrreat. 💃

@Kully
Copy link
Contributor Author

Kully commented Jul 14, 2016

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

@Kully Kully merged commit 4678b18 into master Jul 14, 2016
@Kully Kully deleted the 2d-density branch July 14, 2016 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants