def __init__(self, name, log_path, y_data, x_data=None, options=None, labels=None):
    self.fig = plt.figure()
    self.fig.set_size_inches(18.5, 10.5)
    for y in y_data:
        plt.plot(x_data, y)
    plt.legend(labels)
    plt.title(' '.join(name.split('_')))
    self.fig.savefig(os.path.join(log_path, 'plots', name))
    plt.close()
def __init__(self, name, log_path, y_data, x_data=None, options=None, labels=None):
    self.fig = plt.figure()
    self.fig.set_size_inches(18.5, 10.5)
    for y in y_data:
        plt.plot(x_data, y)
    plt.legend(labels)
    plt.title(' '.join(name.split('_')))
    self.fig.savefig(os.path.join(log_path, 'plots', name))
    plt.close()