Skip to content
Snippets Groups Projects
Commit 31f767da authored by Jammer, Tim's avatar Jammer, Tim
Browse files

change plot colorsceme

parent 4e2e7a60
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,11 @@ plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title ...@@ -52,7 +52,11 @@ plt.rc('figure', titlesize=BIGGER_SIZE) # fontsize of the figure title
fig, axs = plt.subplots(nrows=2, ncols=2, figsize=(16, 9)) # fig, axs = plt.subplots(nrows=2, ncols=2, figsize=(16, 9)) #
colors = ['#228833', '#66ccee', '#ee6677', '#aa3377', '#ccbb44', '#bbbbbb'] #colors = ['#228833', '#66ccee', '#ee6677', '#aa3377', '#ccbb44', '#bbbbbb']
colors = ['#6699CC', '#EECC66', '#004488', '#997700', '#BBBBBB', '#000000']
colors_2 = {'TP': '#117733', 'TN': '#88CCEE', 'FP': '#CC6677', 'FN': '#AA4499', 'RE': '#DDCC77', 'CE': '#DDDDDD'}
hatches= ["","",".",".","",""]
((ax1, ax2), (ax3, ax4)) = axs ((ax1, ax2), (ax3, ax4)) = axs
df_p2p[["TP", "TN", "FP", "FN", "RE", "CE"]].plot.barh(stacked=True, ax=ax1, legend=False,color=colors) df_p2p[["TP", "TN", "FP", "FN", "RE", "CE"]].plot.barh(stacked=True, ax=ax1, legend=False,color=colors)
...@@ -80,4 +84,5 @@ for ax in [ax1, ax2, ax3, ax4]: ...@@ -80,4 +84,5 @@ for ax in [ax1, ax2, ax3, ax4]:
fig.legend(handles, labels, loc='upper center', ncols=6, bbox_to_anchor=(0.5, 1.05), ) fig.legend(handles, labels, loc='upper center', ncols=6, bbox_to_anchor=(0.5, 1.05), )
plt.tight_layout() plt.tight_layout()
plt.savefig(os.path.join(plot_path, "results_per_cat.pdf"), bbox_inches="tight") plt.savefig(os.path.join(plot_path, "results_per_cat.pdf"), bbox_inches="tight")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment