Search code examples
pythongraphplotly

Plotly surface plot flickering


This is related to a previous post , but I have it narrowed down a bit. If at least one of the axis is turned on, then the flicker happens like below. I'm turning off the axis with the following setting

fig.update_scenes(xaxis_visible=False)

enter image description here

if I turn off the the visibility for all axis though, I don't get a flicker.

enter image description here

I assume there's one of the axis settings that is causing the flickering... but I'm not sure which one it is. I'd like to keep the axis titles and and values, but I'm fine turning other things off... I'm just not quite sure which one would do it. Any ideas?


Solution

  • As already commented, it seems that it is the template that is affected. The questioner ran the data on which the question is based and did not see any flicker. By setting the template to no template, the 3D graph is displayed with the axis scales preserved.

    fig.update_layout(template='none',...)