Markers of size 0 in a scatter3d trace


#1

@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),
               mode='markers+text',
               marker=dict(size=0, color = pl_deep[5][1]),
               text=['a', 'b', 'c'],
               hoverinfo='none',
               name=') ``` 
               
are visible?  [https://plot.ly/~empet/15065](https://plot.ly/~empet/15065)
(I refer to the dots   a, b, c).

Thanks!!!  :slight_smile:

#2

Codepen for clarify: https://codepen.io/etpinard/pen/vvbOBN?editors=1010


This has came up before in https://github.com/plotly/plotly.js/issues/1270

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.


#3

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