- class TMSiFrontend.charts.heatmap_chart.HeatmapChart(plotter_chart, resolution=100.0, title=None)#
Bases:
Chart
Heatmap Chart object
- __init__(plotter_chart, resolution=100.0, title=None)#
Initialize heatmap chart
- Parameters:
plotter_chart (GraphicsLayoutWidget) – plotter chart where to place the chart
resolution (float, optional) – points of the heatmap, defaults to 100.0
title (str, optional) – title of the heatmap, defaults to None
Methods
__init__
(plotter_chart[, resolution, title])Initialize heatmap chart
Delete all electrode labels on the chart
Draw head on the chart
initUI
()Initialize UI
Initialize electrode labels on the chart
place_electrodes
(channels, coordinates)Place electrodes in position
set_ranges
(x_ranges, y_ranges)Set ranges for the chart
update_bar
([upper_limit, lower_limit])Update the bar with new limits
update_chart
(data_to_plot)Update chart with new values
update_cm
(style)Update the color map with the desired style
- delete_all_labels()#
Delete all electrode labels on the chart
- draw_headcap()#
Draw head on the chart
- initUI()#
Initialize UI
- initialize_electrode_labels()#
Initialize electrode labels on the chart
- place_electrodes(channels, coordinates)#
Place electrodes in position
- Parameters:
channels (list) – list of channels
coordinates (dict) – coordinates of the channel
- set_ranges(x_ranges, y_ranges)#
Set ranges for the chart
- Parameters:
x_ranges (list with min and max) – ranges x axis
y_ranges (list with min and max) – ranges y axis
- update_bar(upper_limit=None, lower_limit=None)#
Update the bar with new limits
- Parameters:
upper_limit (float, optional) – higher limit of the bar, defaults to None
lower_limit (float, optional) – lower limit of the bar, defaults to None
- update_chart(data_to_plot)#
Update chart with new values
- Parameters:
data_to_plot (list) – values to represent
- update_cm(style)#
Update the color map with the desired style
- Parameters:
style (str) – style of the color map