Skip to content

Commit

Permalink
adjust histo plot
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonkoehn committed Sep 5, 2023
1 parent 7d8c1e6 commit e3117b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions workflows/mark01.smk
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,12 @@ rule make_combined_histograms:
plot_label.append(error_name)
plot_data.append(np.array(hist_data).astype(float))
# plot the histogram
axs.hist(plot_data,range=(0,1),color=colors,label=plot_label, histtype='bar')
axs.hist(plot_data,bins=20, range=(0,1),color=colors,label=plot_label, histtype='bar')
# Put a legend to the right of the current axis
axs.legend(loc='center left',bbox_to_anchor=(1, 0.5))
# set the axis labels
axs.set_xlabel(f"Similarity: {wildcards.metric}")
axs.set_ylabel("Frequency")
# have the x-axis go increasing from left to right
axs.invert_xaxis()
# ensure proper layout
fig.tight_layout()
# save the histogram
Expand Down

0 comments on commit e3117b9

Please sign in to comment.