Skip to content
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

Silent failure to display scatter3d plot in mode lines+markers when line color is given #1093

Closed
ivirshup opened this issue Aug 5, 2018 · 2 comments
Labels
bug plotly.js Issues that would require plotly.js changes

Comments

@ivirshup
Copy link
Contributor

ivirshup commented Aug 5, 2018

In mode lines+markers, if a line is specified with color from a numerical vector the plot silently fails. This happens regardless of whether I'm trying to display it in a notebook or write a file. Here's an example:

screen shot 2018-08-05 at 1 39 17 pm

And here's a copy-able version of the relevant code:

import plotly.graph_objs as go
import numpy as np

x, y, z, c = np.random.random_sample((4, 10))
go.FigureWidget(data=[
    go.Scatter3d(x=x, y=y, z=z,
                 line=go.scatter3d.Line(color=c))
])
@jonmmease
Copy link
Contributor

Thanks for another helpful report @ivirshup 🙂

I was able to reproduce the issue in Plotly.js directly and I've opened a corresponding issue there. You can follow plotly/plotly.js#2873 for updates.

@jonmmease jonmmease added bug plotly.js Issues that would require plotly.js changes labels Aug 5, 2018
@jonmmease
Copy link
Contributor

Fixed in plotly.js by plotly/plotly.js#3341 (See plotly/plotly.js#3316 (comment)), released in plotly.js 1.43.0 and shipped in plotly.py 3.5.0.

import plotly.graph_objs as go
import numpy as np

x, y, z, c = np.random.random_sample((4, 10))
go.FigureWidget(data=[
    go.Scatter3d(x=x, y=y, z=z, mode='lines+markers',
                 line=go.scatter3d.Line(color=c),
                 marker={'color': 'blue'}
                )
])

newplot 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug plotly.js Issues that would require plotly.js changes
Projects
None yet
Development

No branches or pull requests

2 participants