Thanks to visit codestin.com
Credit goes to github.com

Skip to content

showspikes is broken on surface traces #1406

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

Closed
jdugge opened this issue Feb 22, 2017 · 4 comments
Closed

showspikes is broken on surface traces #1406

jdugge opened this issue Feb 22, 2017 · 4 comments
Assignees
Labels
bug something broken

Comments

@jdugge
Copy link
Contributor

jdugge commented Feb 22, 2017

When hovering over a surface plot, Plot.ly displays guide lines ("hover guides"?) that highlight all lines of equal x, y, or z values:

image

Codepen

We found that the z hover guides can sometimes be confusing rather than helpful, and in many cases they aren't needed for highlighting the position.

I haven't been able to find a way to disable the hover guides. Would it be possible to add a boolean for switching them off for each axis, similar to showspikes and spikesides?

@etpinard
Copy link
Contributor

Nice catch. spikesides is working as it should (the spikes don't extend on the axis walls) when turned on. But, showspikes is indeed broken for surface traces (but is working perfectly fine for scatter3d traces as far as I know)

Thanks very much for this report!

@etpinard etpinard changed the title Allow disabling "hover guides" for individual axes showspikes is broken on surface traces Feb 22, 2017
@etpinard etpinard added the bug something broken label Feb 22, 2017
@etpinard etpinard self-assigned this Feb 22, 2017
@etpinard
Copy link
Contributor

etpinard commented Feb 23, 2017

OK @jdugge showspikes doesn't remove the hover guides on surface traces by design. Sorry about the confusion.

To remove them you'll need to set

contours: {
  x: { highlight: false },
  y: { highlight: false },
  z: { highlight: false }
}

in your surface trace object. See example http://codepen.io/etpinard/pen/peoajB


I think it's fairly easy to realized that this is all very confusing. So perhaps we should merge the surface contour highlight and the spikes behavior into a single attribute in v2?

@jdugge
Copy link
Contributor Author

jdugge commented Feb 23, 2017

Ah, amazing, that's it! Thanks, I completely missed that option. I guess because of the visual similarity to the spikes and spikesides, I didn't even consider looking in the options for the surface plot.

Maybe instead of merging contour highlights and spikes into a single attribute, a note in the documentation linking the two topics would already be enough?

@etpinard
Copy link
Contributor

a note in the documentation linking the two topics would already be enough

Good idea. Will be done in plotly/documentation#702

Thanks again for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants