How to show overlap points in scatter plot

Hello. When two points have same [x,y] values, the scatter plot only show one point. Is there a way to display all points even when there are overlap? Thank you!

Hi @wangziheng,

How would you like both points to be displayed? A common workaround for this kind of overplotting situation is to give the markers an opacity < 1 so that overlapping points are darker. Opacity is controlled by the scatter.marker.opacity property.

If you have lots of overplotting, you may want to consider a histogram2dcontour trace.

-Jon

Hi Jon,

Thank you for great advice. I played with the opacity property as demoed in https://plot.ly/python/marker-style/.

But even when overlapping points are displayed, if I hover the mouse over the points, only one point’s detail is shown. Sorry I didn’t make this clear. It’s ok if the overlapping points only shown as one point in the plot. But I would like the overlapping points details when hover. Is there a property to address this? Thank you.

Hi @wangziheng,

Ok, I understand your question now. Unfortunately, I don’t think this is possible right now. Feel free to open a feature request issue with the Plotly.js project at https://github.com/plotly/plotly.js/issues to discuss the possibility.

-Jon