# HG changeset patch # User Nina Engelhardt # Date 1331562448 -3600 # Node ID 0175af93cc54f97353e515f57aaa7f4ecec71591 # Parent b77d4ace3619b6be43681d4d92cae3f4a1b59bf0 numbered format markers diff -r b77d4ace3619 -r 0175af93cc54 .hgignore --- a/.hgignore Fri Mar 09 20:02:39 2012 +0100 +++ b/.hgignore Mon Mar 12 15:27:28 2012 +0100 @@ -2,4 +2,5 @@ history vtune counters +xoanon_counters *~ diff -r b77d4ace3619 -r 0175af93cc54 scripts/ucc_and_loop_graph_treatment/column_view.py --- a/scripts/ucc_and_loop_graph_treatment/column_view.py Fri Mar 09 20:02:39 2012 +0100 +++ b/scripts/ucc_and_loop_graph_treatment/column_view.py Mon Mar 12 15:27:28 2012 +0100 @@ -76,7 +76,7 @@ nodes.append(fig_from_node(graph,node,positioning=positioning)) except Exception as e: print node,e - return sf.Fig(*nodes,trans="x,{}*y".format(vertical_scale_factor)) + return sf.Fig(*nodes,trans="x,{0}*y".format(vertical_scale_factor)) def save_column_view(graph,num_cores,total_height,positioning=None): vertical_scale_factor = 10000.0/float(total_height) @@ -85,7 +85,7 @@ if positioning!=None: f.d.append(fig_nodes(graph,vertical_scale_factor)) w = 3*__column_width*num_cores - c = sf.canvas(f.SVG(),width="{}px".format(w),height="10000px",viewBox='0 0 {} 10000'.format(w)) + c = sf.canvas(f.SVG(),width="{0}px".format(w),height="10000px",viewBox='0 0 {0} 10000'.format(w)) c.save() def get_tsc_scale(graph,num_cores,total_height): @@ -98,12 +98,12 @@ nodes.d.append(n) except Exception as e: print node,e - nodes.trans = "x,{}*y".format(10000.0/float(total_height)) + nodes.trans = "x,{0}*y".format(10000.0/float(total_height)) return nodes def save_tsc_scale(graph,num_cores,total_height): nodes = get_tsc_scale(graph,num_cores,total_height) w = 3*__column_width*num_cores #h = maxh - c = sf.canvas(nodes.SVG(),width="{}px".format(w),height="{}px".format(10000),viewBox='0 0 {} {}'.format(w,10000)) + c = sf.canvas(nodes.SVG(),width="{0}px".format(w),height="{0}px".format(10000),viewBox='0 0 {0} {1}'.format(w,10000)) c.save('tsc.svg')