added -l option (include or not a legend in the graphs)