Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created May 4, 2020 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhishek-shrm/5cb5a183f38311f5fa51b2a90632ee71 to your computer and use it in GitHub Desktop.
Save abhishek-shrm/5cb5a183f38311f5fa51b2a90632ee71 to your computer and use it in GitHub Desktop.
# importing libraries
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import random
# plotting plot
fig=plt.figure(figsize=(5,8))
X=list(range(10))
Y=[x+(x*random.random()) for x in X]
plt.plot(X,Y)
plt.title('Line Plot')
plt.xlabel('x-axis')
plt.ylabel('y-axis')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment