Skip to content

Commit b7dd941

Browse files
committed
Box Plot: Add box for missing group values
1 parent 84b0ced commit b7dd941

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Orange/widgets/visualize/owboxplot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,12 +494,13 @@ def compute_box_data(self):
494494
self.dist = []
495495
self.conts = contingency.get_contingency(
496496
dataset, attr, self.group_var)
497+
group_var_labels = self.group_var.values + ["Missing value"]
497498
if self.is_continuous:
498499
stats, label_texts = [], []
499-
for i, cont in enumerate(self.conts):
500+
for i, cont in enumerate(self.conts.array_with_unknowns):
500501
if np.sum(cont[1]):
501502
stats.append(BoxData(cont, attr, i, self.group_var))
502-
label_texts.append(self.group_var.values[i])
503+
label_texts.append(group_var_labels[i])
503504
self.stats = stats
504505
self.label_txts_all = label_texts
505506
else:

0 commit comments

Comments
 (0)