René's URL Explorer Experiment


Title: howto: colorbar in FigureFactory.create_trisurf() · Issue #517 · plotly/plotly.py · GitHub

Open Graph Title: howto: colorbar in FigureFactory.create_trisurf() · Issue #517 · plotly/plotly.py

X Title: howto: colorbar in FigureFactory.create_trisurf() · Issue #517 · plotly/plotly.py

Description: 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 ...

Open Graph Description: 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 o...

X Description: 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. Bas...

Opengraph URL: https://github.com/plotly/plotly.py/issues/517

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"howto: colorbar in FigureFactory.create_trisurf()","articleBody":"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](https://plot.ly/python/trisurf/), [surface coloring](https://plot.ly/python/3d-surface-coloring/) and [meshes](https://plot.ly/python/3d-mesh/), I guessed that adding a colour bar dict into the `Mesh3d` data could do the job, but this was ineffectual. What would be the right way?\n\nBelow is an example for `ipython notebook` using a mesh from the [FAUST](http://faust.is.tue.mpg.de/) dataset, the [trimesh](https://github.com/mikedh/trimesh) library and the default `trisurf` colouring (`z`-value). The line before the last is my failed attempt.\n\n``` python\nimport trimesh\nmesh = trimesh.load_mesh('tr_reg_003.ply')\nx, y, z = mesh.vertices.T\nsize = (mesh.vertices.max(axis=0) - mesh.vertices.min(axis=0)).T\n\nimport plotly.offline as py\nimport plotly.graph_objs as go\nfrom plotly.tools import FigureFactory as ff\npy.init_notebook_mode()\nfig = ff.create_trisurf(\n    x=x, y=y, z=z, simplices=mesh.faces, colormap='Viridis',\n    aspectratio={'x': size[0], 'y': size[1], 'z': size[2]})\nfig.data[0].update(colorbar=go.ColorBar(title='z'))\npy.iplot(fig)\n```\n\nAlso, an option for `create_trisurf()` setting the aspect ratio based on the mesh extent (as done above manually) would be useful.\n![no_colorbar](https://cloud.githubusercontent.com/assets/5596210/16587692/2cbc7870-42cc-11e6-8e0b-1bd1003f10b9.png)\n","author":{"url":"https://github.com/ntfrgl","@type":"Person","name":"ntfrgl"},"datePublished":"2016-07-05T14:21:09Z","url":"https://github.com/plotly/plotly.py/issues/517"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a6c6d1f5-e175-7f16-c8ff-246bb4f1473c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C1A:2652DC:17E472B:1E894FC:6B012C67
html-safe-nonce95e1971cb81533756f910e628956dfbe95bdf8e5b28d5a8b7addf05af72736a7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzFBOjI2NTJEQzoxN0U0NzJCOjFFODk0RkM6NkIwMTJDNjciLCJ2aXNpdG9yX2lkIjoiMjU3MzM3NTU1MzIxNDE2NDA3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace0bd8c3ece71809dccd4b79315edbaa78a0354498f0f12772e22f5b4d396ba94
hovercard-subject-tagissue:163862659
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.py/517/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ea1f7e0606048ceea9d3c58bc7eb39d3130fdf199b08698e714a6a7221815aad/plotly/plotly.py/issues/517
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ea1f7e0606048ceea9d3c58bc7eb39d3130fdf199b08698e714a6a7221815aad/plotly/plotly.py/issues/517
og:image:altFor 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 o...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamentfrgl
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git
octolytics-dimension-user_id5997976
octolytics-dimension-user_loginplotly
octolytics-dimension-repository_id14579099
octolytics-dimension-repository_nwoplotly/plotly.py
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14579099
octolytics-dimension-repository_network_root_nwoplotly/plotly.py
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/plotly/plotly.py/issues/517#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F517
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fplotly%2Fplotly.py%2Fissues%2F517
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=plotly%2Fplotly.py
Reloadhttps://github.com/plotly/plotly.py/issues/517
Reloadhttps://github.com/plotly/plotly.py/issues/517
Reloadhttps://github.com/plotly/plotly.py/issues/517
plotlyhttps://github.com/plotly
plotly.pyhttps://github.com/plotly/plotly.py
Codehttps://github.com/plotly/plotly.py
Issues650 (650)https://github.com/plotly/plotly.py/issues
Pull requests83 (83)https://github.com/plotly/plotly.py/pulls
Actionshttps://github.com/plotly/plotly.py/actions
Security and qualityhttps://github.com/plotly/plotly.py/security
Insightshttps://github.com/plotly/plotly.py/insights
https://github.com/plotly/plotly.py
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/517
New issuehttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/517
howto: colorbar in FigureFactory.create_trisurf()https://github.com/plotly/plotly.py/issues/517#top
https://github.com/ntfrgl
ntfrglhttps://github.com/ntfrgl
on Jul 5, 2016https://github.com/plotly/plotly.py/issues/517#issue-163862659
trisurfhttps://plot.ly/python/trisurf/
surface coloringhttps://plot.ly/python/3d-surface-coloring/
mesheshttps://plot.ly/python/3d-mesh/
FAUSThttp://faust.is.tue.mpg.de/
trimeshhttps://github.com/mikedh/trimesh
https://cloud.githubusercontent.com/assets/5596210/16587692/2cbc7870-42cc-11e6-8e0b-1bd1003f10b9.png
https://github.com/Kully
Kullyhttps://github.com/Kully
on Jul 5, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-230506284
@ntfrglhttps://github.com/ntfrgl
https://github.com/ntfrgl
ntfrglhttps://github.com/ntfrgl
on Jul 20, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-234117199
https://github.com/Kully
Kullyhttps://github.com/Kully
on Jul 20, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-234118797
https://github.com/ntfrgl
ntfrglhttps://github.com/ntfrgl
on Jul 21, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-234201498
https://github.com/Kully
Kullyhttps://github.com/Kully
on Jul 21, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-234334123
#518https://github.com/plotly/plotly.py/pull/518
https://github.com/ntfrgl
ntfrglhttps://github.com/ntfrgl
on Jul 21, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-234411271
https://github.com/Kully
Kullyhttps://github.com/Kully
on Aug 1, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-236702444
#531https://github.com/plotly/plotly.py/pull/531
https://github.com/Kully
Kullyhttps://github.com/Kully
on Aug 1, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-236702502
@ntfrglhttps://github.com/ntfrgl
https://github.com/Kully
Kullyhttps://github.com/Kully
on Aug 3, 2016https://github.com/plotly/plotly.py/issues/517#issuecomment-237291529
@ntfrglhttps://github.com/ntfrgl
Kullyhttps://github.com/Kully
completedhttps://github.com/plotly/plotly.py/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 3, 2016https://github.com/plotly/plotly.py/issues/517#event-744100332
Sign up for freehttps://github.com/signup?return_to=https://github.com/plotly/plotly.py/issues/517
Sign in to commenthttps://github.com/login?return_to=https://github.com/plotly/plotly.py/issues/517
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.