瀏覽代碼

make sure axis labels aren't cut off

George C. Privon 5 年之前
父節點
當前提交
335e3ac943
共有 1 個文件被更改,包括 4 次插入2 次删除
  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