20 Multiple quantities per time stamp. There might be different numbers
21 of quantities per time stamp.
23 We return a tuple [Float],[Float].
29 for i
in range(0,len(input_data)):
30 for data_point
in input_data[i]:
31 x_data_flattened.append( i )
32 y_data_flattened.append( data_point )
34 return x_data_flattened, y_data_flattened
52 Ranks = range(0,data.ranks)
57 my_alpha = 0.1+(1.0-0.3)/len(Ranks)
59 final_number_of_cells = 0
62 local_cells = data.local_cells_per_snapshot( rank )
64 x_data_flattened, y_data_flattened =
flatten( local_cells )
65 x_data_flattened, y_data_flattened =
remove_duplicates( x_data_flattened, y_data_flattened )
66 plt.scatter(x_data_flattened,
68 marker=Symbols[symbol_counter],
69 color=Colours[colour_counter],
71 label=
"#cells per tree on rank " + str(rank) )
74 remote_cells = data.remote_cells_per_snapshot( rank )
75 x_data_flattened, y_data_flattened =
flatten( remote_cells )
76 x_data_flattened, y_data_flattened =
remove_duplicates( x_data_flattened, y_data_flattened )
77 plt.scatter(x_data_flattened,
78 y_data_flattened, marker=Symbols[symbol_counter], color=Colours[colour_counter], alpha=my_alpha, facecolors=
'none', label=
"Remote #cells per tree")
81 optimum_cells = data.total_local_cells_per_snapshot( rank )
82 max_trees = max( data.trees_per_snapshot( rank ) )
83 y_data = [ x / max_trees
for x
in optimum_cells ]
84 x_data = range(0,len(y_data))
85 plt.plot(x_data, y_data,
"-", color=Colours[colour_counter] )
89 if symbol_counter>=len(Symbols):
91 if colour_counter>=len(Colours):
98 Ranks = range(0,data.ranks)
104 y_data = data.trees_per_snapshot( rank )
105 x_data = range(0,len(y_data))
106 plt.plot(x_data, y_data, marker=Symbols[symbol_counter], color=Colours[colour_counter], label=
"rank " + str(rank) )
110 if symbol_counter>=len(Symbols):
114 if colour_counter>=len(Colours):
126 parser.add_argument(
"-ncol",
"--columns-in-legend", dest=
"columns_in_legend", type=int, default=1, help=
"number of columns within legend" )