From e3117b97bcb262717e3d537abe6fc73bf7542475 Mon Sep 17 00:00:00 2001 From: gordonkoehn Date: Tue, 5 Sep 2023 13:16:35 +0200 Subject: [PATCH] adjust histo plot --- workflows/mark01.smk | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workflows/mark01.smk b/workflows/mark01.smk index 39e43385..dfb71ade 100644 --- a/workflows/mark01.smk +++ b/workflows/mark01.smk @@ -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