Skip to content

Color exceed lines for fill in scatter3d #1206

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
jhxu0416 opened this issue Sep 27, 2018 · 3 comments
Closed

Color exceed lines for fill in scatter3d #1206

jhxu0416 opened this issue Sep 27, 2018 · 3 comments

Comments

@jhxu0416
Copy link

In the 3d filled line example(https://plot.ly/python/3d-filled-line-plots/), the color does not fill the area within the line perfectly.

When I try some more curved and oscillating line, the fill result becomes worse by exceeding the line.
screen shot 2018-09-27 at 4 01 46 pm

@jonmmease
Copy link
Contributor

Hi @jhxu0416 , thanks for the report. I added a comment to plotly/plotly.js#2352 with my thoughts on what's going on. In short, i think the issue here is with the example, not the library.

@empet, if you have a moment I'd be interested in your perspective on this.

@rpanai
Copy link

rpanai commented Feb 25, 2020

Hi @jonmmease it looks to me that the fill attribute has a bug. Here a reproducible example.

import numpy as np
import plotly.graph_objs as go

m = 6
n = 5
mat = np.random.uniform(size=(m,n)).round(1).repeat(2).reshape(m,n*2)

x = np.arange(2*n)
y = np.ones(2*n)
fig = go.Figure()
for i in range(m):
    fig.add_trace(go.Scatter3d(x=x,
                               y=y*i,
                               z=mat[i,:],
                               mode="lines",
                               surfaceaxis=1 # broken
))
fig.show()

@gvwilson
Copy link
Contributor

Hi - we are currently trying to tidy up Plotly's public repositories to help us focus our efforts on things that will help users most. Since this issue has been sitting for several years, so I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our backlog. Thanks for your help - @gvwilson

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

No branches or pull requests

4 participants