Alexey
2018-05-06 bde2a30603e8cd94616a6f4f1e5f017394ec45ca
Merge pull request #760 from PuneetKohli/fix-log-parser-no-display

Change matplotlib backend to 'agg' when 'show_plot' is false.
1 files modified
4 ■■■ changed files
scripts/log_parser/log_parser.py 4 ●●● patch | view | raw | blame | history
scripts/log_parser/log_parser.py
@@ -10,8 +10,8 @@
import platform
import re
import sys
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
@@ -98,6 +98,8 @@
    plt.savefig(save_path, dpi=300)
    if args.show_plot:
        plt.show()
    else:
        plt.switch_backend('agg')
if __name__ == "__main__":