plot_1D_density#

cuqi.utilities.plot_1D_density(density, v_min, v_max, N=501, log_scale=False, **kwargs)#

Plot 1D density function

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

  • v_min (float) – Minimum value for the variable.

  • v_max (float) – Maximum value for the variable.

  • N (int) – Number of grid points for the 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.plot function in this case.