macrosynergy.visuals.table#

view_table(df, title=None, title_fontsize=16, figsize=(14, 4), min_color=-1, max_color=1, xlabel=None, ylabel=None, xticklabels=None, yticklabels=None, annot=True, fmt='.2f')[source]#

Displays a DataFrame representing a table as a heatmap.

Parameters:
  • table – table to be displayed.

  • title (Optional[str]) – string of chart title; defaults depend on type of range plot.

  • title_fontsize (Optional[int]) – font size of chart header. Default is 16.

  • figsize (Optional[Tuple[float]]) – Tuple (w, h) of width and height of plot.

  • min_color (float) – minimum value of colorbar.

  • max_color (float) – maximum value of colorbar.

  • xlabel (Optional[str]) – string of x-axis label.

  • ylabel (Optional[str]) – string of y-axis label.

  • xticklabels (Optional[List[str]]) – list of strings to label x-axis ticks.

  • yticklabels (Optional[List[str]]) – list of strings to label y-axis ticks.

  • annot (bool) – whether to annotate heatmap with values.

Return type:

None