blue_sampler.plot_structure_factor
- blue_sampler.plot_structure_factor(points, resolution=2000, smoothed=True, ax=None, return_fig=False, **plot_kw)[source]
Log-log plot of the radial structure factor S(k).
S(k) is estimated using standard scattering intensity.
- Parameters:
points (
NDArray) – Point coordinates in [0, 1)^D.resolution (
int) – Number of sampled wave vectors used to estimate sf.smoothed (
bool) – If True, apply a local log-log average. If False, plot raw values.ax (
Axes|None) – Existing axes to draw into. If None, a new figure is created.return_fig (
bool) – If True, returns (fig, ax).**plot_kw – Extra keyword arguments forwarded to ax.loglog.
- Return type:
tuple[Figure,Axes] |None