Skip to content

Commit

Permalink
Merge pull request #84 from isabelizimm/n-markers
Browse files Browse the repository at this point in the history
explicitly add `n` to hover data in `plot_metrics`
  • Loading branch information
isabelizimm authored Jul 7, 2022
2 parents 2333594 + 9e1099f commit 9f43e8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vetiver/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9f43e8d

Please sign in to comment.