ValuesAnnotations

class qf_lib.plotting.charts.heatmap.values_annotations.ValuesAnnotations(format_str='.2f', key=None, **plot_settings)[source]

Bases: qf_lib.plotting.charts.heatmap.heatmap_chart_decorator.HeatMapChartDecorator

Adds annotations containing values for each square presented on the heat map.

Parameters
  • format_str (str) – The format of the annotation showed inside of each element of the heat map

  • key – see: Chart.__init__#key

  • plot_settings – additional keyword arguments passed to the matplotlib’s Axes.text() method

Methods

decorate(chart)

Modifies the axes object taken from the chart (e.g.

decorate(chart: HeatMapChart)[source]

Modifies the axes object taken from the chart (e.g. adds legend, draws cone, etc.).