Adjust position of pvalue symbol.

Prevent the pvalue symbol from overlapping with the underlying hline.
master
Damien Goutte-Gattat 3 years ago
parent e265b44ffb
commit ad0d5b177e
  1. 2
      incenp/plotting/scatter.py

@ -157,5 +157,5 @@ def _do_test(ax, testset, testfunc, n_track, max_subtrack):
y = max(testset[0].max(), testset[1].max()) * 1.1
offset = n_track * max_subtrack
ax.hlines(y, offset - .5, offset + 1.5)
ax.text(offset + .5, y + .01, get_stars(pvalue), ha='center')
ax.text(offset + .5, y, get_stars(pvalue), ha='center', va='bottom')

Loading…
Cancel
Save