1
0
Fork 0

Fix graph colours for real.

This commit is contained in:
Casper V. Kristensen 2019-12-14 17:28:03 +01:00
parent 968dcbd4b8
commit 6fc32854b4
9 changed files with 2 additions and 2 deletions

View file

@ -48,8 +48,8 @@ def heatmap(data, row_labels, col_labels, ax=None,
norm=colors.SymLogNorm(
linthresh=linthresh,
linscale=1.0,
vmin=data.min(),
vmax=data.max()
vmin=-abs(data).max(),
vmax=abs(data).max()
),
cmap='RdBu_r')
cbar = ax.figure.colorbar(pcm, ax=ax, extend="both", ticks=SymmetricalLogLocator(base=2, linthresh=linthresh), format=LogFormatterSciNotation(base=2))