def METHOD_NAME(x, y, image, type, xlabel, ylabel, title):
    import matplotlib  # required by windows
    matplotlib.use("wxAGG")  # required by windows
    import matplotlib.pyplot as plt
    plt.plot(x, y, type)
    plt.ylabel(ylabel)
    plt.xlabel(xlabel)
    plt.xlim(min(x), max(x))
    plt.ylim(min(y), max(y))
    plt.title(title)
    plt.grid(True)
    plt.savefig(image)
    plt.close("all")