Yesterday I run the above code snippet and the scatter plot worked just fine. Yet when I rerun it just now, the scatter color just doesn’t match with the legend color (as it’s shown above). E.g. lost should be marked as color green, but it displays as blue on the plot. Is this a UI bug? Noted that won still display the correct blue color as the legend
Could you post an extract of your DataFrame as code df=pd.DataFrame(your_data) instead of an image so people can copy&paste?
If everything worked fine yesterday, make sure the DataFrame has not changed unintentionally. This happens quite easily if you are working in a jupyter notebook.
I didn’t change the DataFrame, just turn off my PC and turn on run the same code. THe result is still the same, I’m pretty sure the incorrect color display is the problem. In the scatter plot above , when zooming in more closely, you can see that the hovered node with value lost display blue , where it should display green as its legend on the right side
Okay, I understand what you mean, the description of the hovered node has confused me. Could you suggest a way or a workaround to display all the overlapping nodes, if there’s any?
*Update:
I just realize that using a strip would make more sense than scatter in this situation, with opacity custom.
One more thing I would like to tune up. How do I change the opacity of one specific value but not the other? e.g. opacity={‘won’:0.5, ‘lost’: 1}