Skip to content

vertexcolor for mesh3d plot does not seem to work #1684

@precsim

Description

@precsim

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, {});

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions