question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use surfacecolor, if defined, instead of z to color the contour lines

See original GitHub issue

I suggest that when usecolormap in surface.contours is true, the lines should be colored using the surfacecolor, if defined, otherwise it will use the colorscale as a fallback.

Demo

As you can see in the demo, i’d like the countours in the second scene to use the surfacecolor as a source for coloring instead of the default colorscale that they currently use.

Thanks in advance!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
etpinardcommented, Aug 1, 2019

I’d call that a bug. Thanks for reporting!

0reactions
jackparmercommented, Sep 10, 2020

This issue has been tagged with NEEDS SPON$OR

A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.

Sponsorship range: $5k-$10k

What Sponsorship includes:

  • Completion of this feature to the Sponsor’s satisfaction, in a manner coherent with the rest of the Plotly.js library and API
  • Tests for this feature
  • Long-term support (continued support of this feature in the latest version of Plotly.js)
  • Documentation at plotly.com/javascript
  • Possibility of integrating this feature with Plotly Graphing Libraries (Python, R, F#, Julia, MATLAB, etc)
  • Possibility of integrating this feature with Dash
  • Feature announcement on community.plotly.com with shout out to Sponsor (or can remain anonymous)
  • Gratification of advancing the world’s most downloaded, interactive scientific graphing libraries (>50M downloads across supported languages)

Please include the link to this issue when contacting us to discuss.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MATLAB surfc - Contour plot under surface plot - MathWorks
A surface plot is a three-dimensional surface that has solid edge colors and solid face colors. The function plots the values in matrix...
Read more >
plotly.graph_objects.Surface — 5.11.0 documentation
The color scale corresponds to the z values by default. For custom color scales, use surfacecolor which should be a 2D list, where...
Read more >
color of a 3D surface plot in python - Stack Overflow
To get the correct colors, use the Z values to pick values from the color map: my_col = ...
Read more >
3d surface plots in Python - Plotly
In this example, the surface color represents the distance from the origin, rather than the default, which is the z value. In [6]:....
Read more >
3D surface (colormap) — Matplotlib 3.6.2 documentation
Demonstrates plotting a 3D surface colored with the coolwarm colormap. The surface is made opaque by using antialiased=False . Also demonstrates using the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found