visualize_2_dimensions#

Visualization.visualize_2_dimensions(dim1: int = 0, dim2: int = 1, bins: int = 25, show: bool = True, colormap_2d=<matplotlib.colors.LinearSegmentedColormap object>, color_1d='black')#

Method to jointly investigate 2 dimensions of a sampled posterior.

Parameters
  • samples (hmclab.Samples) – Samples object.

  • dim1 (int) – First dimension to investigate.

  • dim2 (int) – Second dimension to investigate.

  • bins (int) – Bins used for 1d and 2d histograms.

  • show (bool) – Whether or not to render the output. If false, the plot is only show after using matplotlib.pyplot.show(). If true, plot is immediately shown.