Skip to content

3D grid lines and tick labels colored by rgba color with full transparency #3493

@jonmmease

Description

@jonmmease

Uncovered by report plotly/plotly.py#1416

When a scatter3d marker has opacity set < 1, and the marker color is specified by an RGBA color with alpha < 1, the grid lines and tick labels take on the color of the marker. This leads to an odd appearance when the markers are mostly of fully transparent.

CodePen: https://codepen.io/jonmmease/pen/aXmpGX

var trace1 = {
  x: [0], 
  y: [0], 
  z: [0], 
  mode: 'markers',
  marker: {
    size: 200,
    color: 'rgb(255, 0, 0, 0)',
    line: {
    },
    // opacity: 1.0
    opacity: 0.999
  },
  type: 'scatter3d'
};

var data = [trace1];
var layout = {
      margin: {
        l: 0,
        r: 0,
        b: 0,
        t: 0
  }};
Plotly.newPlot('myDiv', data, layout, {showSendToCloud: true});

screen shot 2019-01-29 at 6 15 03 am

When the marker color is set as an RGB value, and the marker.opacity is set close to zero, the coloring of the grid lines and tick labels does not occur.

Metadata

Metadata

Assignees

Labels

bugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions