tChange shear plot subplot layout - sphere - GPU-based 3D discrete element meth… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit cf01772825c92e36d827573770ad4ca04aebf450 | |
parent 7342f87b19e26af65e0f6855c4d4d7161ce0f2bd | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 31 Mar 2014 11:10:24 +0200 | |
Change shear plot subplot layout | |
Diffstat: | |
M python/sphere.py | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -4197,7 +4197,7 @@ class sim: | |
tau_u, tau_u_shearstrain) | |
fig.text(0.5, 0.03, shearinfo, horizontalalignment='center', | |
fontproperties=FontProperties(size=14)) | |
- ax1 = plt.subplot2grid((1, 2), (0, 0)) | |
+ ax1 = plt.subplot2grid((2,1), (0,0)) | |
ax1.set_xlabel('Shear strain [-]') | |
ax1.set_ylabel('Stress [Pa]') | |
ax1.plot(xdisp / w_x0, sigma_eff, '+-g', label="$\sigma'$") | |
t@@ -4207,7 +4207,7 @@ class sim: | |
ax1.grid() | |
# Plot dilation | |
- ax2 = plt.subplot2grid((1,2),(0,1)) | |
+ ax2 = plt.subplot2grid((2,1),(1,0)) | |
ax2.set_xlabel('Shear strain [-]') | |
ax2.set_ylabel('Dilation [m]') | |
ax2.plot(xdisp/w_x0, dilation, '+-') |