You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -132,24 +195,29 @@ void plot_overall(char* output_path, char *path, int number_of_actors, int numbe
132
195
}
133
196
//draw numbers:
134
197
//gnuplot_cmd(h, "plot \\");
135
-
if(number_of_events==1){
136
-
i=0;
137
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
138
-
}
139
-
elseif (number_of_events==0){
140
-
printf("nothing to plot\n");
141
-
exit(0);
142
-
}
143
-
else{
144
-
for(i=0;i<number_of_events;i++){
145
-
if(i==0){//first
146
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle,\\", path, i, i+2, i+2);
198
+
if (NOLABELS)
199
+
gnuplot_cmd(h, "0 notitle"); //end plot here
200
+
else
201
+
{
202
+
if(number_of_events==1){
203
+
i=0;
204
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
205
+
}
206
+
elseif (number_of_events==0){
207
+
printf("nothing to plot\n");
208
+
exit(0);
209
+
}
210
+
else{
211
+
for(i=0;i<number_of_events;i++){
212
+
if(i==0){//first
213
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle,\\", path, i, i+2, i+2, labels_font_size);
214
+
}
215
+
elseif (i==(number_of_events-1)){//last
216
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle", path, i, i+2, i+2, labels_font_size);
217
+
}
218
+
else{
219
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle,\\", path, i, i+2, i+2, labels_font_size);
147
220
}
148
-
elseif (i==(number_of_events-1)){//last
149
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
150
-
}
151
-
else{
152
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle,\\", path, i, i+2, i+2);
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
201
-
}
202
-
elseif (number_of_events==0){
203
-
printf("nothing to plot\n");
204
-
exit(0);
205
-
}
206
-
else{
207
-
for(i=0;i<number_of_events;i++){
208
-
if(i==0){//first
209
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle,\\", path, i, i+2, i+2);
266
+
if (NOLABELS)
267
+
gnuplot_cmd(h, "0 notitle"); //end plot here
268
+
else
269
+
{
270
+
if(number_of_events==1){
271
+
i=0;
272
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
273
+
}
274
+
elseif (number_of_events==0){
275
+
printf("nothing to plot\n");
276
+
exit(0);
277
+
}
278
+
else{
279
+
for(i=0;i<number_of_events;i++){
280
+
if(i==0){//first
281
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle,\\", path, i, i+2, i+2, labels_font_size);
282
+
}
283
+
elseif (i==(number_of_events-1)){//last
284
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle", path, i, i+2, i+2, labels_font_size);
285
+
}
286
+
else{
287
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \"Verdana,%d\" notitle,\\", path, i, i+2, i+2, labels_font_size);
210
288
}
211
-
elseif (i==(number_of_events-1)){//last
212
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle", path, i, i+2, i+2);
213
-
}
214
-
else{
215
-
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(1).'|', add_label(d),index(d))+(d_width*%d)):%d:(gprintf(\"%%.2se%%S\", $%d)) w labels rotate by 20 font \",5\" notitle,\\", path, i, i+2, i+2);
0 commit comments