-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
added appropriate colorbar max and min values, edges_color to param for line coloring, and making code more clear #551
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
…or line coloring, and making code more clear
@@ -3305,7 +3305,7 @@ def _trisurf(x, y, z, simplices, show_colorbar, colormap=None, | |||
color_func[index] = FigureFactory._label_rgb(foo) | |||
|
|||
mean_dists = np.asarray(color_func) | |||
else: | |||
elif hasattr(color_func, '__call__'): |
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.
🐄 Why not just elif color_func is not None
?
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.
Why not just elif color_func is not None?
Your way makes sense upon closer inspection. Actually, I think else
would work as well, since if color_func
was a function, it would therefore not be None
nor a list/array
Cool, ping me when you get that test passing again for a final review? |
@theengineear I made all your edits and additionally switched Whoop! |
@Kully did you mean to edit |
Great! 💃 after you respond to #551 (comment). |
So I accedentally pushed that temp-chart one fateful day ago. Chelsea didn't think it was a big deal iirc but everytime I rune |
Nah! Let's revert it! It's never a good idea to commit things you don't mean to! You can either:
Let me know if you need help with either. |
Let's do this. |
I don't think that you can draw a Scatter3d trace defined only by one point. By https://plot.ly/python/reference/#scatter3d-x In this colorbar definition the above conditions are violated:
I defined a very simple Plotly plot defining a Scatter3d instance like this one and no colorbar is plotted. |
I think the difference is that the |
@Kully I tested with a trisurf too, and the colorbar is not displayed. |
Let's wait till the pip package gets updated (I updated the version number) and we'll see what's up with it then. |
@theengineear