Skip to content

Commit

Permalink
small tweaks to cluster_flickr.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jhofman committed Jan 31, 2011
1 parent b8816a3 commit 3d5c3d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions code/image_data/cluster_flickr.py
Expand Up @@ -20,6 +20,7 @@ def plot_montage(images, ndx, ncol=None):

row = 0
col = 0
tot_height = 0
for i in range(N):

I = sp.array(images[ndx[i]], dtype='float32')
Expand All @@ -33,9 +34,13 @@ def plot_montage(images, ndx, ncol=None):
if col % ncol == 0:
row += 1
col = 0
tot_height += height

f.set_figheight(row*height/100)
f.set_figwidth(ncol*width/100)
tot_height += height
tot_width = width*ncol

f.set_figheight(tot_height/100)
f.set_figwidth(tot_width/100)

return f

Expand Down

0 comments on commit 3d5c3d9

Please sign in to comment.