Skip to content

Commit 0bfa805

Browse files
committed
modified consensus boxplots coloring, changed scatterplot coloring scheme
1 parent f86a656 commit 0bfa805

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

superannotate/consensus_benchmark/helpers.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,24 @@ def consensus_plot(consensus_df, projects):
145145
plot_data = consensus_df.copy()
146146

147147
#annotator-wise boxplot
148-
annot_box_fig = px.box(plot_data, x="creatorEmail", y="score", points="all")
148+
annot_box_fig = px.box(
149+
plot_data,
150+
x="creatorEmail",
151+
y="score",
152+
points="all",
153+
color="creatorEmail",
154+
color_discrete_sequence=px.colors.qualitative.Dark24
155+
)
149156
annot_box_fig.show()
150157

151158
#project-wise boxplot
152159
project_box_fig = px.box(
153-
plot_data, x="projectName", y="score", points="all"
160+
plot_data,
161+
x="projectName",
162+
y="score",
163+
points="all",
164+
color="projectName",
165+
color_discrete_sequence=px.colors.qualitative.Dark24
154166
)
155167
project_box_fig.show()
156168

@@ -162,7 +174,7 @@ def consensus_plot(consensus_df, projects):
162174
color="className",
163175
symbol="creatorEmail",
164176
facet_col="projectName",
165-
color_discrete_sequence=px.colors.qualitative.Alphabet,
177+
color_discrete_sequence=px.colors.qualitative.Dark24,
166178
hover_data={
167179
"className": False,
168180
"imageName": True,

0 commit comments

Comments
 (0)