✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Lighting and marker sizing in scatter3d

I have a 3D scatter plot that was pleasantly straightforward to get to its current state, but I’m making no progress in refining a few aspects of it:

  1. The sizing of the marker points and those in the legend - if I set marker: { size: 14}, the size of both changes. 14 looks good for the legend, but too large for the data. If I set the size to suit the data, the markers in the legend become tiny. Is there a way to set them independantly, or change the ratio between them?

  2. mesh3d and surface both have the concept of lighting, but scatter3d appears not to. When markers overlap, as shown below, some lighting to give the markers more definition would be very beneficial. Is this possible?

  3. Marker sizing as a function of depth into the screen would also help with comprehension. A user has to waggle the view around in order to gain a sense of whether a marker is near or far.

There’s no way to set the size of the marker points in the legend items at the moment unfortunately

There’s no lighting options for scatter3d at the moment. I’d recommend using marker.opacity in the meantime.

There’s no way to do that at the moment either.