[Python] Drawing freeform at plotly graph (go.figure) with transparent packground

Discussão em 'Python' iniciado por Stack, Junho 6, 2025.

  1. Stack

    Stack Membro Participativo

    Have some scatter plot in plotly (go.figure) I use shape-drawing buttons at modebar So if i drawing "open freeform" it appears with black background

    [​IMG]

    Because in Windows and Chrome applied dark themes so i use template='ggplot2' for better visualisation (if it matters)

    Trying to use paper_bgcolor='rgba(0,0,0,0) and plot_bgcolor='rgba(0,0,0,0) at fig.update_layout but same result

    If this form are selected (for erasing e.g) it appears without background filling but with turnpoints

    [​IMG]

    At original link it works propperly

    [​IMG]

    https://plotly.com/python/configuration-options/#add-optional-shapedrawing-buttons-to-modebar

    Continue reading...

Compartilhe esta Página