# heatmap_plot.py
from mdvtools.charts.base_plot import BasePlot
[docs]
class HeatmapPlot(BasePlot):
def __init__(self, title, params, size, position, id=None, **kwargs):
super().__init__(title, "heat_map", params, size, position, id, **kwargs)
[docs]
def set_method(self, method):
self.plot_data["method"] = method
[docs]
def set_color_scale(self, color_scale):
self.plot_data["color_scale"] = color_scale
[docs]
def set_intensity_scale(self, intensity_scale):
self.plot_data["intensity_scale"] = intensity_scale
[docs]
def set_opacity(self, opacity):
self.plot_data["opacity"] = opacity
[docs]
def set_color_range(self, color_range):
self.plot_data["color_range"] = color_range
[docs]
def set_x_axis(self, axis_labels, axis_title):
self.plot_data["x_axis"] = {"labels": axis_labels, "title": axis_title}
[docs]
def set_y_axis(self, axis_labels, axis_title):
self.plot_data["y_axis"] = {"labels": axis_labels, "title": axis_title}
# Any additional methods specific to heatmaps can be added here