Skip to content

Commit 9f43e8d

Browse files
authored
Merge pull request #84 from isabelizimm/n-markers
explicitly add `n` to hover data in `plot_metrics`
2 parents 2333594 + 9e1099f commit 9f43e8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vetiver/monitor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ def plot_metrics(
157157
y=estimate,
158158
color=metric,
159159
facet_row=metric,
160-
markers=n,
160+
markers=dict(size=n),
161+
hover_data={"n": ':'},
161162
**kw,
162163
)
164+
163165
fig.for_each_annotation(lambda a: a.update(text=a.text.split("=")[-1]))
164166
fig.update_layout(showlegend=False)
165167

0 commit comments

Comments
 (0)