Skip to content

Commit bd89833

Browse files
committed
OWSOM: Add report (but it doesn't work)
1 parent 9079ec9 commit bd89833

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Orange/widgets/unsupervised/owsom.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Outputs:
184184
pie_charts = Setting(False)
185185
selection = Setting(set(), schema_only=True)
186186

187-
graph_name = "plot"
187+
graph_name = "view"
188188

189189
_grid_pen = QPen(QBrush(QColor(224, 224, 224)), 2)
190190
_grid_pen.setCosmetic(True)
@@ -772,6 +772,11 @@ def set_legend_pos(self):
772772
self.size_x / 2,
773773
(self.size_y + 0.2 + 0.3 * self.hexagonal) * self._grid_factors[1])
774774

775+
def send_report(self):
776+
self.report_plot()
777+
if self.attr_color:
778+
self.report_caption(
779+
f"Self-organizing map colored by '{self.attr_color.name}'")
775780

776781
def _draw_hexagon():
777782
path = QPainterPath()

0 commit comments

Comments
 (0)