from mdvtools.charts.base_plot import BasePlot
[docs]
class DensityScatterPlot(BasePlot):
def __init__(self, title, param, size, position, id=None):
super().__init__(title, "density_scatter_plot", param, size, position, id)
[docs]
def set_default_color(self, color):
self.plot_data["default_color"] = color
[docs]
def set_brush(self, brush_type):
self.plot_data["brush"] = brush_type
[docs]
def set_filter(self, filter_type):
self.plot_data["on_filter"] = filter_type
[docs]
def set_radius(self, radius):
self.plot_data["radius"] = radius
[docs]
def set_opacity(self, opacity):
self.plot_data["opacity"] = opacity
[docs]
def set_color_by(self, color_by):
self.plot_data["color_by"] = color_by
[docs]
def set_color_legend(self, display, position):
self.plot_data["color_legend"] = {"display": display, "pos": position}
[docs]
def set_category1(self, category1):
self.plot_data["category1"] = category1
[docs]
def set_category2(self, category2):
self.plot_data["category2"] = category2
# Any additional methods specific to scatter plots can be added here