GUI

import matplotlib
matplotlib.use("Agg")  # not show GUI
import matplotlib.pyplot as plt