plot_2D_density#

cuqi.utilities.plot_2D_density(density, v1_min, v1_max, v2_min, v2_max, N1=201, N2=201, log_scale=False, **kwargs)#

Plot 2D density function

Parameters:
  • density (CUQIpy Density) – The density to be plotted.

  • v1_min (float) – Minimum value for the first variable.

  • v1_max (float) – Maximum value for the first variable.

  • v2_min (float) – Minimum value for the second variable.

  • v2_max (float) – Maximum value for the second variable.

  • N1 (int) – Number of grid points for the first variable.

  • N2 (int) – Number of grid points for the second variable.

  • log_scale (bool) – If True, the density is plotted in log scale.

  • kwargs (dict) – Additional keyword arguments for the plot that are passed to the underlying plotting method: matplotlib.pyplot.imshow function in this case.