🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

3Dscatter plot size

Hi,

I’d like to increase the size of my 3D plot, the red square on the jpg joined.
I try several Layouts but no expected result.

aLayout = {
‘title’: ‘TODO’,
‘scene’: {
‘xaxis’: {‘zeroline’: False},
‘yaxis’: {‘zeroline’: False},
‘zaxis’: {‘zeroline’: False},
},
‘autosize’: False,
‘width’: 500,
‘height’: 500,
‘margin’: {‘l’: 0, ‘r’: 0, ‘b’: 0, ‘t’: 0}
}

Need help to well fit the layout of my 3D plot.

Could you share the HTML and CSS (if any) of the page where your graph resides to help us debug?

You might also want to tweak

I use a Jupyter ipy file, no dev of HTML or CSS.
My plot snippet

plotly.offline.init_notebook_mode(connected=True)
plotly.offline.iplot({‘data’: aData, ‘layout’: aLayout})

I can’t neither apply aspectratio on my objects.
ValueError: Invalid property specified for object of type plotly.graph_objs.Layout: ‘aspectratio’
ValueError: Invalid property specified for object of type plotly.graph_objs.Scatter3d: ‘aspectratio’

aspectratio is a scene attribute.

With aspectratio well placed it’s OK.

ThkU.

1 Like