Mercurial > repos > holtgrewe > ngs_roi
diff roi_plot_thumbnails.py @ 1:0ac4f6f3d984 draft
Uploaded
| author | holtgrewe |
|---|---|
| date | Mon, 06 May 2013 12:34:43 -0400 |
| parents | 61d9bdb6d519 |
| children | 170e48a55078 |
line wrap: on
line diff
--- a/roi_plot_thumbnails.py Thu Apr 18 08:03:38 2013 -0400 +++ b/roi_plot_thumbnails.py Mon May 06 12:34:43 2013 -0400 @@ -148,7 +148,7 @@ print >>sys.stderr, 'Writing HTML to %s' % file_name with open(file_name, 'wb') as f: f.write('<html><body>\n') - f.write('<iframe name="empty" height="0" width="0" src="about:blank"></iframe>\n') + f.write('<h1>ROI Thumbnail Plots</h1>') for gl in self.grid_links: vals = (gl.file_name, gl.file_name, self.grid.canvas_width, self.grid.canvas_height) f.write('<img src="%s" usemap="#%s" width="%d" height="%d" />\n' % vals) @@ -168,7 +168,8 @@ f.write(' <area shape="rect" coords="%(x1)d,%(y1)d,%(x2)d,%(y2)d" ' 'alt="%(title)s" title="%(title)s" href="%(href)s"%(target_attr)s />\n' % vals) f.write('</map>\n') - f.write('</body></html>\n') + f.write('<iframe name="empty" height="0" width="0" src="about:blank"></iframe>\n') + f.write('<div><code>' + str(self.args) + '</code></div></body></html>\n') def main():
