Skip to content

Commit

Permalink
adding some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfarah committed Jul 17, 2018
1 parent d6948e7 commit c89a10c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/comparisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def image_agreements(imarr, beamparams, metric_mtx, fracsteps, cutoff=0.95):


def generate_consistency_plot(clique_fraclevels, im_clique_fraclevels, show=True):
# matplotlib aesthetics
plt.rc('text', usetex=True)
plt.rc('font', family='serif')
plt.rcParams.update({'font.size': 16})
Expand All @@ -121,6 +122,8 @@ def generate_consistency_plot(clique_fraclevels, im_clique_fraclevels, show=True
for c, column in enumerate(clique_fraclevels):
colorc = cycol.next()
for r, row in enumerate(column):

# adding the images
lenx = len(clique_fraclevels)
leny = 0
for li in clique_fraclevels:
Expand All @@ -137,6 +140,8 @@ def generate_consistency_plot(clique_fraclevels, im_clique_fraclevels, show=True
arrowprops=None)

ax.add_artist(ab)

# adding the arrows
if c+1 != len(clique_fraclevels):
for a, ro in enumerate(clique_fraclevels[c+1]):
if set(row).issubset(ro):
Expand All @@ -155,6 +160,8 @@ def generate_consistency_plot(clique_fraclevels, im_clique_fraclevels, show=True
color=colorc
)
row.sort()

# adding the text
txtstring = str(row)
if len(row) == len(clique_fraclevels[-1][0]):
txtstring = '[all]'
Expand Down

0 comments on commit c89a10c

Please sign in to comment.