Image.plot_model(data, figsize=(5, 5), cmap=None, c='C0', contour=False)[source]#

Plot the data and a model side by side.

  • data (numpy.ndarray) – The model data to plot.

  • figsize (tuple, optional) – The size of the figure, by default (5, 5).

  • cmap (str or matplotlib.colors.Colormap, optional) – The colormap to use for the data, by default None.

  • c (str, optional) – The color to use for the data, by default “C0”.

  • contour (bool, optional) – Whether to plot the contours of the model, by default False.

Return type: