@@ -1300,7 +1300,11 @@ def show_sentiment_stats(args, name, resample, start_date, data):
1300
1300
overall_neg = sum (2 * (d [1 ].Value - 0.5 ) for d in data if d [1 ].Value > 0.5 )
1301
1301
title = "%s sentiment +%.1f -%.1f δ=%.1f" % (
1302
1302
name , overall_pos , overall_neg , overall_pos - overall_neg )
1303
- deploy_plot (title , args .output , args .background )
1303
+ if args .mode == "all" and args .output :
1304
+ output = get_plot_path (args .output , "sentiment" )
1305
+ else :
1306
+ output = args .output
1307
+ deploy_plot (title , output , args .background )
1304
1308
1305
1309
1306
1310
def show_devs (args , name , start_date , end_date , people , days , max_people = 50 ):
@@ -1397,7 +1401,11 @@ def show_devs(args, name, start_date, end_date, people, days, max_people=50):
1397
1401
axes [- 1 ].set_facecolor ((1.0 ,) * 3 + (0.0 ,))
1398
1402
1399
1403
title = ("%s commits" % name ) if not args .output else ""
1400
- deploy_plot (title , args .output , args .background )
1404
+ if args .mode == "all" and args .output :
1405
+ output = get_plot_path (args .output , "time_series" )
1406
+ else :
1407
+ output = args .output
1408
+ deploy_plot (title , output , args .background )
1401
1409
1402
1410
1403
1411
def order_commits (chosen_people , days , people ):
@@ -1518,7 +1526,11 @@ def show_devs_efforts(args, name, start_date, end_date, people, days, max_people
1518
1526
legend = pyplot .legend (loc = 2 , ncol = 2 , fontsize = args .font_size )
1519
1527
apply_plot_style (pyplot .gcf (), pyplot .gca (), legend , args .background ,
1520
1528
args .font_size , args .size or "16,10" )
1521
- deploy_plot ("Efforts through time (changed lines of code)" , args .output , args .background )
1529
+ if args .mode == "all" and args .output :
1530
+ output = get_plot_path (args .output , "efforts" )
1531
+ else :
1532
+ output = args .output
1533
+ deploy_plot ("Efforts through time (changed lines of code)" , output , args .background )
1522
1534
1523
1535
1524
1536
def show_old_vs_new (args , name , start_date , end_date , people , days ):
@@ -1545,7 +1557,11 @@ def show_old_vs_new(args, name, start_date, end_date, people, days):
1545
1557
pyplot .legend (loc = 2 , fontsize = args .font_size )
1546
1558
for tick in chain (pyplot .gca ().xaxis .get_major_ticks (), pyplot .gca ().yaxis .get_major_ticks ()):
1547
1559
tick .label .set_fontsize (args .font_size )
1548
- deploy_plot ("Additions vs changes" , args .output , args .background )
1560
+ if args .mode == "all" and args .output :
1561
+ output = get_plot_path (args .output , "old_vs_new" )
1562
+ else :
1563
+ output = args .output
1564
+ deploy_plot ("Additions vs changes" , output , args .background )
1549
1565
1550
1566
1551
1567
def show_languages (args , name , start_date , end_date , people , days ):
0 commit comments