Skip to content

vertexcolor for mesh3d plot does not seem to work #1684

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
precsim opened this issue May 15, 2017 · 1 comment · Fixed by #1686
Closed

vertexcolor for mesh3d plot does not seem to work #1684

precsim opened this issue May 15, 2017 · 1 comment · Fixed by #1686
Labels
bug something broken

Comments

@precsim
Copy link

precsim commented May 15, 2017

Experimenting with the tetrahedron codepen setting the vertexcolor property does not seem to work, facecolor though works as expected.

var data = [{
    type: "mesh3d",
    opacity:0.7,
    x: [0, 1, 2, 0],
    y: [0, 0, 1, 2],
    z: [0, 2, 0, 1],
    i: [0, 0, 0, 1],
    j: [1, 2, 3, 2],
    k: [2, 3, 1, 3],
    // color:'rgb(200,100,300)',
    // facecolor: [ 'rgb(255, 0, 0)', 'rgb(0, 0, 255)', 'rgb(0, 255, 0)', 'rgb(255, 255, 255)' ],
    vertexcolor: [ 'rgb(255, 0, 0)', 'rgb(0, 0, 255)', 'rgb(0, 255, 0)', 'rgb(255, 255, 255)' ],
}
           ];

Plotly.plot('myDiv', data, {});
@etpinard
Copy link
Contributor

Thanks very much for the report. Here's the 1-letter patch that fixes this.

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

Successfully merging a pull request may close this issue.

2 participants