Skip to content

Commit d53d270

Browse files
committed
Changed consensus scatter plot color scheme and plot labels
1 parent 873c662 commit d53d270

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

superannotate/consensus_benchmark/helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ def consensus_plot(consensus_df, projects):
162162
color="className",
163163
symbol="creatorEmail",
164164
facet_col="projectName",
165+
color_discrete_sequence=px.colors.qualitative.Alphabet,
165166
hover_data={
166167
"className": False,
167168
"imageName": True,
168169
"projectName": False,
169170
"area": False,
170171
"score": False
171-
}
172+
},
172173
)
174+
fig.for_each_annotation(lambda a: a.update(text=a.text.split("=")[-1]))
175+
fig.for_each_trace(lambda t: t.update(name=t.name.split("=")[-1]))
173176
fig.show()

0 commit comments

Comments
 (0)