Mercurial > cgi-bin > hgwebdir.cgi > VMS > 2__runs_and_data
changeset 20:0175af93cc54
numbered format markers
author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
---|---|
date | Mon, 12 Mar 2012 15:27:28 +0100 |
parents | b77d4ace3619 |
children | 3092eb030708 |
files | .hgignore scripts/ucc_and_loop_graph_treatment/column_view.py |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/.hgignore Fri Mar 09 20:02:39 2012 +0100 1.2 +++ b/.hgignore Mon Mar 12 15:27:28 2012 +0100 1.3 @@ -2,4 +2,5 @@ 1.4 history 1.5 vtune 1.6 counters 1.7 +xoanon_counters 1.8 *~
2.1 --- a/scripts/ucc_and_loop_graph_treatment/column_view.py Fri Mar 09 20:02:39 2012 +0100 2.2 +++ b/scripts/ucc_and_loop_graph_treatment/column_view.py Mon Mar 12 15:27:28 2012 +0100 2.3 @@ -76,7 +76,7 @@ 2.4 nodes.append(fig_from_node(graph,node,positioning=positioning)) 2.5 except Exception as e: 2.6 print node,e 2.7 - return sf.Fig(*nodes,trans="x,{}*y".format(vertical_scale_factor)) 2.8 + return sf.Fig(*nodes,trans="x,{0}*y".format(vertical_scale_factor)) 2.9 2.10 def save_column_view(graph,num_cores,total_height,positioning=None): 2.11 vertical_scale_factor = 10000.0/float(total_height) 2.12 @@ -85,7 +85,7 @@ 2.13 if positioning!=None: 2.14 f.d.append(fig_nodes(graph,vertical_scale_factor)) 2.15 w = 3*__column_width*num_cores 2.16 - c = sf.canvas(f.SVG(),width="{}px".format(w),height="10000px",viewBox='0 0 {} 10000'.format(w)) 2.17 + c = sf.canvas(f.SVG(),width="{0}px".format(w),height="10000px",viewBox='0 0 {0} 10000'.format(w)) 2.18 c.save() 2.19 2.20 def get_tsc_scale(graph,num_cores,total_height): 2.21 @@ -98,12 +98,12 @@ 2.22 nodes.d.append(n) 2.23 except Exception as e: 2.24 print node,e 2.25 - nodes.trans = "x,{}*y".format(10000.0/float(total_height)) 2.26 + nodes.trans = "x,{0}*y".format(10000.0/float(total_height)) 2.27 return nodes 2.28 2.29 def save_tsc_scale(graph,num_cores,total_height): 2.30 nodes = get_tsc_scale(graph,num_cores,total_height) 2.31 w = 3*__column_width*num_cores 2.32 #h = maxh 2.33 - c = sf.canvas(nodes.SVG(),width="{}px".format(w),height="{}px".format(10000),viewBox='0 0 {} {}'.format(w,10000)) 2.34 + c = sf.canvas(nodes.SVG(),width="{0}px".format(w),height="{0}px".format(10000),viewBox='0 0 {0} {1}'.format(w,10000)) 2.35 c.save('tsc.svg')