class qf_lib.plotting.charts.returns_heatmap_chart.ReturnsHeatmapChart(returns: qf_lib.containers.series.qf_series.QFSeries, title='Monthly Returns')[source]

Bases: qf_lib.plotting.charts.chart.Chart

Constructs a new monthly returns heatmap chart based on the specified returns.


returns (QFSeries) – series of daily, weekly or monthly data


plot(figsize, float] = None)

Plots the chart.

plot(figsize: Tuple[float, float] = None)[source]

Plots the chart. The underlying figure stays hidden until the show() method is called.


figsize (Tuple[float, float]) – The figure size to draw the chart at in inches. This is a tuple of (width, height) passed directly to matplotlib’s plot function. The values are expressed in inches.