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
gnuplot_cmd(h, "set title \"Events in %s per action\"", actor_name);
69
+
gnuplot_cmd(h, "set xtics out");
70
+
gnuplot_cmd(h, "set xtics nomirror");
71
+
gnuplot_cmd(h, "set xtics autofreq");
72
+
gnuplot_cmd(h, "set xtics font \"Verdana,8\"");
73
+
gnuplot_cmd(h, "set label rotate by 90");
74
+
gnuplot_cmd(h, "set grid");
75
+
76
+
/*gnuplot_cmd(h, "set xtics(\\");
77
+
for (i=0;i<(number_of_actions-1);i++)
78
+
gnuplot_cmd(h,"\"\" %d,\\",i);
79
+
gnuplot_cmd(h,"\"\" %d)",i);*/
80
+
81
+
82
+
gnuplot_cmd(h, "plot \\");
83
+
if(number_of_events==1){
84
+
i=0;
85
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+(d_width*%d)):%d:xtic(2) smooth frequency w boxes title columnhead,\\", path, i, i+3);
86
+
//gnuplot_cmd(h, "\"%s\" using (d='|'.strcol(2).'|', add_label(d),index(d)):3:3 smooth frequency w labels rotate by 90 font \",5\" notitle", path);
87
+
}
88
+
elseif (number_of_events==0){
89
+
printf("nothing to plot\n");
90
+
exit(0);
91
+
}
92
+
else{
93
+
for(i=0;i<number_of_events;i++){
94
+
if(i==0){//first
95
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+(d_width*%d)):%d:xtic(2) smooth frequency w boxes title columnhead,\\", path, i, i+3);
96
+
//gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+(d_width*%d)):%d:%d smooth frequency w labels rotate by 90 font \",5\" notitle,\\", path,i,i+3,i+3);
97
+
}
98
+
elseif (i==(number_of_events-1)){//last
99
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+(d_width*%d)):%d smooth frequency w boxes title columnhead,\\", path, i, i+3);
100
+
//gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+d_width*%d):%d:%d smooth frequency w labels rotate by 90 font \",5\" notitle", path,i,i+3,i+3);
101
+
}
102
+
else
103
+
gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d)),index(d)+(d_width*%d)):%d smooth frequency w boxes title columnhead,\\", path, i, i+3);
104
+
//gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+(d_width*%d)):%d:%d smooth frequency w labels rotate by 90 font \",5\" notitle,\\", path,i,i+3,i+3);
105
+
}
106
+
}
107
+
108
+
gnuplot_close(h);
109
+
110
+
111
+
// gnuplot_cmd(h, "plot \\");
112
+
113
+
// gnuplot_cmd(h, "\"%s\" using (d='|'.strcol(2).'|', add_label(d),index(d)):3:xtic(2) smooth frequency w boxes title columnhead,\\", path);
114
+
// gnuplot_cmd(h, "\"%s\" using (d='|'.strcol(2).'|', add_label(d),index(d)):3:3 smooth frequency w labels rotate by 90 font \",5\" notitle,\\", path);
115
+
116
+
// gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+d_width):4 smooth frequency w boxes title columnhead,\\", path);
117
+
// gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+d_width):4:4 smooth frequency w labels rotate by 90 font \",5\" notitle,\\", path);
58
118
119
+
// gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+d_width*2):5 smooth frequency w boxes title columnhead,\\", path);
120
+
// gnuplot_cmd(h, "\"%s\" using ((d='|'.strcol(2).'|', add_label(d),index(d))+d_width*2):5:5 smooth frequency w labels rotate by 90 font \",5\" notitle", path);
59
121
60
122
61
-
/* plot "profit.dat" u 1:2 w boxes lc rgb"green" notitle,\
62
-
"profit.dat" u ($1+d_width):3 w boxes lc rgb"red" notitle
0 commit comments