with plotly 5.20.0 , addding multiple legend within VSCode version 1.87.2 (Windows_NT x 64) do not produce the expected results (a.k.a it only show one legend) when either using the default render (a.ka. fig.show()) or vscode render (a.ka render = ‘vscode’)
this behaivor can be solve with renderer = ‘png’ but the full idea of using plotly is to have interactive figures, so for me this is a bug.
I will not add code as this can be tested with the example code from multiple legend