diff --git a/graph.py b/graph.py new file mode 100644 index 0000000..5f9e674 --- /dev/null +++ b/graph.py @@ -0,0 +1,11 @@ +import matplotlib.pyplot as plt + +x = [x for x in range(-11,10)] +y = [x**3 for x in range(-11,10)] + +plt.plot(x,y) +plt.xlabel("x-axis") +plt.ylabel("y-axis") +plt.title("Plot for y = x^3") +plt.grid() +plt.show()