Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created May 4, 2020 05:11
Show Gist options
  • Save abhishek-shrm/3d13d87351b6f511a2e66ddcceaae04a to your computer and use it in GitHub Desktop.
Save abhishek-shrm/3d13d87351b6f511a2e66ddcceaae04a to your computer and use it in GitHub Desktop.
fig,axes=plt.subplots(2,2,figsize=(16,8))
axes[0][0].plot(X,[x-(x*random.random()) for x in X])
axes[0][0].set_title('Plot 1')
axes[0][1].plot(X,[x+(x*random.random()) for x in X])
axes[0][1].set_title('Plot 2')
axes[1][0].plot(X,[x-(x*random.random()) for x in X])
axes[1][0].set_title('Plot 3')
axes[1][1].plot(X,[x+(x*random.random()) for x in X])
axes[1][1].set_title('Plot 4')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment