Quellcode durchsuchen

make sure axis labels aren't cut off

George C. Privon vor 5 Jahren
Ursprung
Commit
335e3ac943
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      email_stats.py

+ 4 - 2
email_stats.py

@@ -132,9 +132,11 @@ ax.tick_params(axis='x',
                labelrotation=90)
 
 if args.plotroot:
-    fig.savefig(args.plotroot + '-send_times.png')
+    fig.savefig(args.plotroot + '-send_times.png',
+                bbox_inches='tight')
 else:
-    fig.savefig('send_times.png')
+    fig.savefig('send_times.png',
+                bbox_inches='tight')
 
 
 # Email destination domains as a function of month