""" Simple Pyplot example PyPlot is the module you should be using for non-interactive scripts. """ import matplotlib.pyplot def create_graph(): x_nums = [1, 2, 3] y_nums = [2, 4, 6] matplotlib.pyplot.plot(x_nums, y_nums) matplotlib.pyplot.show() if __name__ == "__main__": create_graph()