Markers of size 0 in a scatter3d trace

@etienne Why markers of size=0 in a scatter3d trace:

trace = dict(type='scatter3d',
               x= tri_verts[:, 0],
               y= tri_verts[:, 1],
               z= h*np.ones(3),
               marker=dict(size=0, color = pl_deep[5][1]),
               text=['a', 'b', 'c'],
               name=') ``` 
are visible?  [](
(I refer to the dots   a, b, c).

Thanks!!!  :slight_smile:

Codepen for clarify:

This has came up before in

In brief, at the moment marker.size must be greater than 0. In other words, 0 is treated as invalid and we fallback to the default marker size. We’ll probably change that in plotly.js v2 and make marker.size: 0 valid.

In the meantime, I’d recommend making your scatter3d trace have mode: 'text' instead of mode: 'marker+text'.

Sorry for the inconvenience.

@etienne Thank you very much!!! It looks great with mode ='text.

1 Like