This example shows how to plot a depth-dependent scattering length density (SLD) profile caused by a dense assembly of conical particles.
The staircase profile comes from slicing of the vacuum layer that accounts for the z dependent particle density. The slicing is specified by the statement
ambient_layer.setNumberOfSlices(20).