From a775f3a445a59f076c8c10012024f845eb60884d Mon Sep 17 00:00:00 2001 From: utksin13 <114904343+utksin13@users.noreply.github.com> Date: Tue, 4 Oct 2022 13:51:35 +0530 Subject: [PATCH] Create pythonmat --- pythonmat | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pythonmat diff --git a/pythonmat b/pythonmat new file mode 100644 index 00000000..4a13508b --- /dev/null +++ b/pythonmat @@ -0,0 +1,21 @@ +# importing the required module +import matplotlib.pyplot as plt + +# x axis values +x = [1,2,3] +# corresponding y axis values +y = [2,4,1] + +# plotting the points +plt.plot(x, y) + +# naming the x axis +plt.xlabel('x - axis') +# naming the y axis +plt.ylabel('y - axis') + +# giving a title to my graph +plt.title('My first graph!') + +# function to show the plot +plt.show()