taltered appearance of shear plot - sphere - GPU-based 3D discrete element meth… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 538aa86ce112aaa8d9a9562cdf522860e39fc9b2 | |
parent 5f608d723016931090d48d16049edb0da46d3574 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 1 Sep 2014 16:07:33 +0200 | |
altered appearance of shear plot | |
Diffstat: | |
M python/sphere.py | 16 ++++++++++------ | |
1 file changed, 10 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -4916,11 +4916,13 @@ class sim: | |
fontproperties=FontProperties(size=14)) | |
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'$") | |
- ax1.plot(xdisp / w_x0, sigma_def, '+-b', label="$\sigma_0$") | |
- ax1.plot(xdisp / w_x0, tau, '+-r', label="$\\tau$") | |
- ax1.legend(loc=4) | |
+ #ax1.set_ylabel('Stress [Pa]') | |
+ ax1.set_ylabel('Shear friction $\\tau/\\sigma\'$ [-]') | |
+ #ax1.plot(xdisp / w_x0, sigma_eff, '+-g', label="$\sigma'$") | |
+ #ax1.plot(xdisp / w_x0, sigma_def, '+-b', label="$\sigma_0$") | |
+ #ax1.plot(xdisp / w_x0, tau, '+-r', label="$\\tau$") | |
+ ax1.plot(xdisp / w_x0, tau/sigma_eff, '.-', label="$\\tau$") | |
+ #ax1.legend(loc=4) | |
ax1.grid() | |
# Plot dilation | |
t@@ -4929,9 +4931,11 @@ class sim: | |
#ax2.set_ylabel('Dilation [m]') | |
#ax2.set_ylabel('Dilation [%]') | |
ax2.set_ylabel('Dilation, $\Delta h/(2\\bar{r})$ [m]') | |
- ax2.plot(xdisp/w_x0, dilation, '+-') | |
+ ax2.plot(xdisp/w_x0, dilation, '.-') | |
ax2.grid() | |
+ fig.tight_layout() | |
+ | |
else : | |
# Write values to textfile | |
filename = "shear-stresses-{0}.txt".format(self.sid) |