python - Setting Background color to transparent in Plotly plots - Stack Overflow

fig.update_layout(
    paper_bgcolor='rgba(0,0,0,0)',
    plot_bgcolor='rgba(0,0,0,0)'
)