HeatMapChart

class qf_lib.plotting.charts.heatmap.heatmap_chart.HeatMapChart(data: qf_lib.containers.dataframe.qf_dataframe.QFDataFrame, color_map=None, min_value: float = None, max_value: float = None, start_x: Any = None, end_x: Any = None)[source]

Bases: qf_lib.plotting.charts.chart.Chart

Creates a Heatmap chart.

Parameters
  • data (QFDataFrame) – QFDataFrame containing data that should be plotted using heat map

  • color_map – color map to use for coloring the heat map

  • min_value (float) – min possible value (used for adjusting colors on the heatmap)

  • max_value (float) – max possible value (used for adjusting colors on the heatmap)

  • start_x (Any) – see: Chart__init__#start_x

  • end_x (Any) – see: Chart__init__#end_x

Methods

plot(figsize, float] = None)

Plots the chart.

Attributes

color_mesh_

Mesh generated during plotting.

color_mesh_

Mesh generated during plotting.

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

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

Parameters

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.