small fixes

This commit is contained in:
Jan Benda 2026-01-27 21:25:23 +01:00
parent 5e254c2aaf
commit 4cf3767ba4
2 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ def plot_corr(ax, data, xcol, ycol, zcol, zmin, zmax, xpdfmax, cmap, color,
if 'cvbase' in xcol:
ax.text(1, 0.64, f'$n={data.rows()}$', ha='right',
transform=ax.transAxes, fontsize='small')
print(f' correlation {xcol:<8s} - {ycol}: r={r:5.2f}, p={p:.2e}')
print(f' correlation {xcol:<11s} - {ycol:<11s}: r={r:5.2f}, p={p:.2e}')
return cax
@ -221,7 +221,7 @@ def plot_corr_contrast(ax, data, xcol, ycol, xpdfmax, color,
if 'cvbase' in xcol:
ax.text(1, 0.64, f'$n={data.rows()}$', ha='right',
transform=ax.transAxes, fontsize='small')
print(f' correlation {xcol:<8s} - {ycol}: r={r:5.2f}, p={p:.2e}')
print(f' correlation {xcol:<11s} - {ycol:<11s}: r={r:5.2f}, p={p:.2e}')
def si_stats(title, data, sicol, si_thresh, nsegscol):

View File

@ -181,7 +181,7 @@ def plot_diagonals(ax, s, fbase, contrast1, freqs1, chi21,
sis.append(sinorm)
sips.append(sip)
sifs.append(sif)
print(f' SI at {100*contrast:.1f}% contrast: {sinorm:.2f}')
print(f' SI at {100*contrast:4.1f}% contrast: {sinorm:.2f}')
ax.plot(diags[1][0], 1e-4*diags[1][1], **s.lsC2)
ax.plot(diags[0][0], 1e-4*diags[0][1], **s.lsC1)
offs = 0.05*ymax