-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
howto: colorbar in FigureFactory.create_trisurf() #517
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
Comments
@ntfrgl I am looking at it now. I swear I remember a colorbar already being in |
Any news on this? |
Hi there, I think I already added the colorbar. Just download the latest package of plotly and it should be there. I apologize for not responding to this sooner. |
Could you please be more specific, e.g. pointing to a commit? The example still doesn't produce a colorbar, and I couldn't find a new relevant option or documentation example for |
Hi again. Yes, the PR was this: #518 A test related to the 2d-density part of it is still failing, so I have to tend to it. I don't know if that has anything the colorbar not showing up (it should be there) but I'll figure it out hopefully today. |
I see, thank you. Unfortunately, this still doesn't solve my problem, because fig.data[0].update(colorscale=ff._make_linear_colorscale(ff._validate_colors('Viridis', 'rgb'))) And again, although the
|
A PR is on the way. Tests need to pass first. #531 |
@ntfrgl ^^^^ |
@ntfrgl Alright, version 1.12.5 is available now with a visible colorbar in |
For many applications, a colour bar is essential for visual interpretation, but I couldn't find a parameter or example in the documentation indicating how to add one to a
trisurf
rendering. Based on the documentation on trisurf, surface coloring and meshes, I guessed that adding a colour bar dict into theMesh3d
data could do the job, but this was ineffectual. What would be the right way?Below is an example for
ipython notebook
using a mesh from the FAUST dataset, the trimesh library and the defaulttrisurf
colouring (z
-value). The line before the last is my failed attempt.Also, an option for

create_trisurf()
setting the aspect ratio based on the mesh extent (as done above manually) would be useful.The text was updated successfully, but these errors were encountered: