How to show all legend in conditional plot and show several legends in plotly
问题 I am trying to make a plot similar to the next one: While I have until now is: Which is generated with the following code: import plotly.io as pio pio.renderers.default='browser' import plotly.graph_objects as go import pandas as pd import numpy as np input_df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv') threshold =2.8 name_yaxis="Gap" input_df["AAPL.High"] = (input_df["AAPL.High"]-min(input_df["AAPL.High"]))*(threshold)/(max(input_df[