Skip to content

Contour throws exceptions when trying to infer x and y axis types after switching from numerical to category. #615

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
mcin-armintaheri-archive opened this issue Jun 8, 2016 · 3 comments
Labels
bug something broken

Comments

@mcin-armintaheri-archive

http://codepen.io/armintaheri/pen/NrGLxY

When plotting a contour plot with x-axis set to a numerical array, then calling restyle with a categorical array, then calling relayout with {'xaxis.type': '-'}, The following exceptions are thrown:

Error: <path> attribute d: Expected number, "M,0L,0L,270L,270Z".
Uncaught TypeError: Cannot read property '0' of undefined

And the plot does not change its axis type.

@etpinard
Copy link
Contributor

etpinard commented Jun 8, 2016

Strange. Restyling a categorical x to a linear type works fine.

Thanks for reporting.

@etpinard etpinard added the bug something broken label Jun 8, 2016
@etpinard
Copy link
Contributor

This bug is still present in 1.20.x, but at least now a workaround : replacing restyle + relayout by Plotly.update works as desired.

@etpinard
Copy link
Contributor

Potentially fixed in #1999 cc @alexcjohnson

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