Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created May 4, 2020 05:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save abhishek-shrm/3322363b498b96c53de0ebb69f7f7abe to your computer and use it in GitHub Desktop.
fig=plt.figure(figsize=(16,6))
ax1=plt.subplot(1,2,1)
ax1.plot(X,[x+(x*random.random()) for x in X])
ax1.set_title('Plot 1')
ax2=plt.subplot(1,2,2)
ax2.plot(X,[x-(x*random.random()) for x in X])
ax2.set_title('Plot 2')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment