Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created May 4, 2020 05:16
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/ee8b99765601d172548dc3b302108472 to your computer and use it in GitHub Desktop.
Save abhishek-shrm/ee8b99765601d172548dc3b302108472 to your computer and use it in GitHub Desktop.
fig=plt.figure(figsize=(8,8))
ax1=plt.subplot2grid((4,4),(0,0),colspan=3)
ax1.plot(X,[x+(x*random.random()) for x in X])
ax1.set_title('Plot 1 : (0,0)')
ax2=plt.subplot2grid((4,4),(0,3))
ax2.plot(X,[x-(x*random.random()) for x in X])
ax2.set_title('Plot 2 : (0,3)')
ax3=plt.subplot2grid((4,4),(1,0),rowspan=3,colspan=3)
ax3.plot(X,[x-(x*random.random()) for x in X])
ax3.set_title('Plot 3 : (1,0)')
ax4=plt.subplot2grid((4,4),(1,3),rowspan=3,colspan=1)
ax4.plot(X,[x+(x*random.random()) for x in X])
ax4.set_title('Plot 4 : (1,3)')
fig.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment