Skip to content

Commit

Permalink
Add x y labels; fix axis ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
dunyuliu committed Oct 18, 2024
1 parent a476231 commit 6e26835
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions scripts/plotRuptureDynamics
Original file line number Diff line number Diff line change
Expand Up @@ -94,42 +94,47 @@ def ruptureDynamics():
plt.contour(xx,zz,rupt2d[:,:,0], levels)
plt.title('Slip (m) & Rupture time (per 0.05 s)')

ax11 = fig.add_subplot(332)
ax12 = fig.add_subplot(332)
plt.contourf(xx,zz,rupt2d[:,:,7])
plt.colorbar()
plt.title('Slip s (m) ')

ax11 = fig.add_subplot(333)
ax13 = fig.add_subplot(333)
plt.contourf(xx,zz,rupt2d[:,:,8])
plt.colorbar()
plt.title('Slip d (m) ')

ax12 = fig.add_subplot(334)
ax21 = fig.add_subplot(334)
plt.contourf(xx,zz,rupt2d[:,:,2])
plt.colorbar()
plt.title('Peak slip rate (m/s); Mag = '+str(magnitude))

ax21 = fig.add_subplot(335)
ax22 = fig.add_subplot(335)
plt.contourf(xx,zz,rupt2d[:,:,3])
plt.colorbar()
plt.title('Final slip rate (m/s)')

ax22 = fig.add_subplot(336)
ax23 = fig.add_subplot(336)
plt.contourf(xx,zz,rupt2d[:,:,4])
plt.colorbar()
plt.title('Shear stress (MPa)')

ax22 = fig.add_subplot(337)
ax31 = fig.add_subplot(337)
plt.contourf(xx,zz,rupt2d[:,:,6])
plt.colorbar()
plt.title('Dip shear stress (MPa)')

ax22 = fig.add_subplot(338)
ax32 = fig.add_subplot(338)
plt.contourf(xx,zz,rupt2d[:,:,5])
plt.colorbar()
plt.title('Normal stress (MPa)')

#ax22 = fig.add_subplot(326)
ax11.set_ylabel('Depth, km')
ax21.set_ylabel('Depth, km')
ax31.set_ylabel('Depth, km')
ax31.set_xlabel('Along strike distance, km')
ax32.set_xlabel('Along strike distance, km')
#plt.contourf(xx,zz,rupt2d[:,:,9])
#plt.contourf(xx,zz,rupt2d[:,:,9])
#plt.colorbar()
#plt.title('Normal stress change (MPa)')
Expand Down

0 comments on commit 6e26835

Please sign in to comment.