PyDDM.utils.plot_to_inspect_fit

PyDDM.utils.plot_to_inspect_fit

plot_to_inspect_fit(q_index_to_plot, fit, axis_to_use=None, ylim=None, oneplotcolor='r', show_legend=True, scale_by_q_to_power=0, show_colorbar=False, print_params=True)

Create plot of data and fit

For inspecting fits to the data (either DDM matrix or the ISF), this will generate 1 plot.

Parameters
  • q_index_to_plot (array-like) – Array of 4 integers corresponding to the indices of the array of wavenumbers

  • fit (xarray Dataset) – Result of fit

  • axis_to_use (optional) – If matplotlib figure already created, can pass the axis to have plot appear on that figure

  • ylim (optional) – Specify limits of y-axis

  • oneplotcolor (optional) – Default is ‘r’ (red).

  • show_legend (bool, optional) – Default is True

  • scale_by_q_to_power (float, optional) – Default is zero.

  • show_colorbar (bool, optional) – Default is False

  • print_params (bool, optional) – Default is True

Returns

fig – Figure created

Return type

matplotlib figure