Skip to content
Snippets Groups Projects
Commit 69f834fb authored by Noordijk, Ben's avatar Noordijk, Ben
Browse files

Show fewer kmer labels in nn performance plot

parent bb2ad105
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,9 @@ def main():
# precision recall
sns.scatterplot(x='recall', y='precision', data=performance_df, ax=ax_pr)
for km, tup in performance_df.iterrows():
ax_pr.text(x=tup.recall, y=tup.precision, s=km, fontsize=5)
# Only add text to k-mers in 'middle region'
if 0.2 < tup.recall < 0.7 or 0.2 < tup.precision < 0.75:
ax_pr.text(x=tup.recall, y=tup.precision, s=km, fontsize=5)
# accuracy
sns.violinplot(y='accuracy', data=performance_df, color="0.8", ax=ax_acc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment