1
0
Fork 0

fixing bug

This commit is contained in:
Pablo González 2023-01-16 17:17:02 +01:00
parent 948f63fade
commit 7bcf8b24e9
1 changed files with 3 additions and 3 deletions

View File

@ -309,11 +309,11 @@ def error_by_drift(method_names, true_prevs, estim_prevs, tr_prevs,
for vline in vlines: for vline in vlines:
ax.axvline(vline, 0, 1, linestyle='--', color='k') ax.axvline(vline, 0, 1, linestyle='--', color='k')
if not show_legend:
ax.get_legend().remove()
ax.set_xlim(min_x, max_x) ax.set_xlim(min_x, max_x)
ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
if not show_legend:
ax.legend(loc='center left', bbox_to_anchor=(1, 0.5))
_save_or_show(savepath) _save_or_show(savepath)