Skip to content

Commit

Permalink
improving the display . #16
Browse files Browse the repository at this point in the history
  • Loading branch information
vbonvin committed Mar 16, 2017
1 parent 20bebdd commit 2a1348c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions pycs/sim/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,22 +1129,24 @@ def newcovplot(rrlist, r=5, rerr=3, nbins = 10, nbins2d=3, binclip=True, binclip
printcovmat = False

if printcovmat:
text += ' %.2f %.2f %.2f %.2f %.2f %.2f \n\n'\
' %.2f %.2f %.2f %.2f %.2f %.2f \n\n' \
' %.2f %.2f %.2f %.2f %.2f %.2f \n\n' \
' %.2f %.2f %.2f %.2f %.2f %.2f \n\n' \
' %.2f %.2f %.2f %.2f %.2f %.2f \n\n' \
' %.2f %.2f %.2f %.2f %.2f %.2f \n\n' \
text += ' AB AC AD BC BD CD \n'
text += ' '+'-----'*12+'\n'
text += 'AB | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n'\
'AC | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n' \
'AD | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n' \
'BC | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n' \
'BD | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n' \
'CD | %.2f %.2f %.2f %.2f %.2f %.2f \n |\n' \
% (mylist[0], mylist[1], mylist[2], mylist[3], mylist[4], mylist[5]
, mylist[6], mylist[7], mylist[8], mylist[9], mylist[11], mylist[11]
, mylist[12], mylist[13], mylist[14], mylist[15], mylist[16], mylist[17]
, mylist[18], mylist[19], mylist[20], mylist[21], mylist[22], mylist[23]
, mylist[24], mylist[25], mylist[26], mylist[27], mylist[28], mylist[29]
, mylist[30], mylist[31], mylist[32], mylist[33], mylist[34], mylist[35])

axinv.annotate(text, xy=(0.9 * (ncouples-1), -2.0), xycoords='axes fraction', ha="center")
axinv.annotate(text, xy=(0.7 * (ncouples-1), -2.0), xycoords='axes fraction', ha="left")
else:
axinv.annotate(text, xy=(0.9 * (ncouples-1), -1.0), xycoords='axes fraction', ha="center")
axinv.annotate(text, xy=(0.7 * (ncouples-1), -1.0), xycoords='axes fraction', ha="left")


retdict["r"] = r
Expand Down

0 comments on commit 2a1348c

Please sign in to comment.