Skip to content

Commit

Permalink
fix labels
Browse files Browse the repository at this point in the history
  • Loading branch information
thayeral committed Oct 18, 2023
1 parent 6994d79 commit f7544c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,11 @@ def plot_heatmap_p2v(
transform=ax.transAxes
)

ax1.legend(frameon=False, ncol=1, loc='upper left')
if color_label == 'Residuals':
ax1.legend(frameon=False, ncol=1, loc='upper left')
else:
ax1.legend(frameon=False, ncol=1, loc='center right')

ax1.yaxis.set_major_formatter(PercentFormatter(decimals=0))
ax1t.grid(True, which="both", axis='both', lw=.25, ls='--', zorder=0)
ax2.yaxis.set_major_formatter(PercentFormatter(decimals=0))
Expand Down

0 comments on commit f7544c6

Please sign in to comment.