How to avoid duplicate legend labels in plotly or pass custom legend labels
Plotly controls this on the trace level. Try passing in showlegend=False inside the Histogram traces that you don’t want to appear in the legend. Reference: https://plot.ly/python/reference/#Histogram-showlegend Example: https://plot.ly/python/legend/#Hiding-Legend-Entries Direct copy-paste from the link above. import plotly.plotly as py from plotly.graph_objs import * # Fill in with your personal username and API key # or, use … Read more