tadd colored dots to visualize progressive shear strain - sphere - GPU-based 3D… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 4655081fc0453fd7a0e469a1b199e67687920dc4 | |
parent 418246d1ed3a323dae340566ab6c24e0b1ec4ad9 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 17 Feb 2015 13:45:50 +0100 | |
add colored dots to visualize progressive shear strain | |
Diffstat: | |
M python/sphere.py | 5 ++++- | |
1 file changed, 4 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -6104,8 +6104,11 @@ class sim: | |
ax1 = plt.subplot(111) | |
#ax1.semilogy(N/1000., v) | |
- ax1.semilogy(tau_nonzero/N_nonzero, v_nonzero, '.') | |
+ #ax1.semilogy(tau_nonzero/N_nonzero, v_nonzero, '+k') | |
#ax1.plot(tau/N, v, '.') | |
+ ax1.scatter(tau_nonzero/N_nonzero, v_nonzero, c=idx) | |
+ ax1.set_yscale('log') | |
+ | |
#ax1.set_xlabel('Effective normal stress [kPa]') | |
ax1.set_xlabel('Friction $\\tau/N$ [-]') | |
ax1.set_ylabel('Shear velocity [m/s]') |