Skip to content

Scatter3d plot_bgcolor not working #3502

@Serzl

Description

@Serzl

I am trying to set plot color to be white, however it does note seem to be working.

Below is an example setting paper and plot colors to black.
While paper_bgcolor is working plot_bgcolor does not work.

import plotly.graph_objects as go

fig = go.Figure(data=go.Scatter3d(x=[1, 2], y=[1,1], z=[1,1], mode = 'markers'), )

fig.update_layout(autosize = False, width = 2000, height = 1000)

# fig.layout.paper_bgcolor = '#000000'
fig.layout.plot_bgcolor = '#000000'

fig.show()

I have tried multiple configurations, including the following post recommendations. Nothing so far worked.

Would appreciate your help and suggestions.
Even workarounds, like hardcoding plot colors in the python library would work as a temporary solutions for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions