Fix graph colours.

This commit is contained in:
Casper V. Kristensen 2019-12-14 17:03:59 +01:00
parent 0a7f5e20d4
commit 968dcbd4b8
9 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def heatmap(data, row_labels, col_labels, ax=None,
if logcolor: if logcolor:
pcm = ax.pcolor(data, pcm = ax.pcolor(data,
norm=colors.LogNorm(vmin=data.min(), vmax=data.max()), norm=colors.LogNorm(vmin=data.min(), vmax=data.max()),
cmap='Blues') cmap='Reds')
cbar = ax.figure.colorbar(pcm, ax=ax, extend="max", ticks=LogLocator(base=2), format=LogFormatterSciNotation(base=2)) cbar = ax.figure.colorbar(pcm, ax=ax, extend="max", ticks=LogLocator(base=2), format=LogFormatterSciNotation(base=2))
elif sym_logcolor: elif sym_logcolor:
linthresh = 1.0 linthresh = 1.0