The Interactive page

PESummary is able to produce interactive plots using the plotly Python package.

These interactive plots are displayed on the interactive page. By default, these plots will be generated (however, this can be turned off by passing the –disable_interactive)

Corner plot

This interactive corner plot has many useful features. The first is custom selection. Here you are able to select a small region of the a/b parameter space and see how these points (now colored orange) vary across the full parameter space. This image can then be saved and sent to collaborators etc. An example extrinsic corner plot is shown below:

pesummary.core.plots.interactive.corner(data, labels, dimensions={'height': 900, 'width': 900}, show_diagonal=False, colors={'not_selected': 'rgba(0,0,0,1)', 'selected': 'rgba(248,148,6,1)'}, show_upper_half=False, write_to_html_file='interactive_corner.html')[source]

Build an interactive corner plot

Parameters:
  • data (list, np.ndarray) – The samples you wish to produce a corner plot for. This should be a 2 dimensional array where the zeroth axis is the list of samples and the next axis is are the dimensions of the space

  • labels (list, np.ndarray) – A list of names for each dimension

  • dimensions (dict) – A dictionary giving the width and height of the figure.

  • show_diagonal (Bool) – Whether or not to show the diagonal scatter plots

  • colors (dict) – A dictionary of colors for the individual samples. The dictionary should have keys ‘selected’ and ‘not_selected’ to indicate the colors to be used when the markers are selected and not selected respectively

  • show_upper_half (Bool) – Whether or not to show the upper half of scatter plots

  • write_to_html_file (str) – Name of the html file you wish to write the figure to