PyDDM.utils.plot_to_inspect_fit_2x2subplot

PyDDM.utils.plot_to_inspect_fit_2x2subplot

plot_to_inspect_fit_2x2subplot(q_index_to_plot, fit, ylim=None, oneplotcolor='r')

Create 2-by-2 suplot of fits

For inspecting fits to the data (either DDM matrix or the ISF), this will generate 4 plots. It will do so at 4 q values. Specify these in the “q_index_to_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

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

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

Returns

fig – Figure created

Return type

matplotlib figure