From 9e1099fb8a7553071f9ee18f84a3bc4a28188d1f Mon Sep 17 00:00:00 2001 From: isabelizimm Date: Tue, 5 Jul 2022 16:57:20 -0400 Subject: [PATCH] explicitly add n to hover data --- vetiver/monitor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vetiver/monitor.py b/vetiver/monitor.py index 8e18afbc..614d6b9b 100644 --- a/vetiver/monitor.py +++ b/vetiver/monitor.py @@ -157,9 +157,11 @@ def plot_metrics( y=estimate, color=metric, facet_row=metric, - markers=n, + markers=dict(size=n), + hover_data={"n": ':'}, **kw, ) + fig.for_each_annotation(lambda a: a.update(text=a.text.split("=")[-1])) fig.update_layout(showlegend=False)