Reduce white padding from 3D plots

I am trying to plot 3D graphs but there is too much extra padding. Please suggest how to reduce it so that it looks similar to the ones given in the documentation.

This is the layout:

go.Layout(
            autosize=True,
            scene=dict(
                xaxis=dict(title="x (m)"),
                yaxis=dict(title="y (m)"),
                zaxis=dict(title="z (m)"),
            ),
        )

The generated plot:

Thanks for the help!