Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Aspect Ratio Matlab

Hello,
I have a question about the aspect ratio on plotly figures. I am converting some matlab figures to plotly figures. After calling fig2plotly i am trying to change the aspect ratio of the figure by changing fp.layout.scene,aspectratio. Whenever i make this call it throws an error along the lines of Aspect ratio is not part of scene.

Do you know what i am doing wrong or how you change the aspect ratio of a plotly figure in matlab?

Thanks again for your help.