Merge pull request #760 from PuneetKohli/fix-log-parser-no-display

Change matplotlib backend to 'agg' when 'show_plot' is false.
pull/766/head
Alexey 7 years ago committed by GitHub
commit bde2a30603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      scripts/log_parser/log_parser.py

@ -10,8 +10,8 @@ import os
import platform
import re
import sys
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
@ -98,6 +98,8 @@ def log_parser(args):
plt.savefig(save_path, dpi=300)
if args.show_plot:
plt.show()
else:
plt.switch_backend('agg')
if __name__ == "__main__":

Loading…
Cancel
Save