tadded labels - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit bde2c9f40250688b02ca1b47caab3d7aabb959bf
(DIR) parent d17e9bc8044caf0b3e77cbf286934808fcc4bc29
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Sun, 7 Apr 2013 04:38:51 +0200
added labels
Diffstat:
M python/sphere.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1440,10 +1440,13 @@ class Spherebin:
plt.figure(figsize=[4, 4])
- ax = subplot(111)
- ax.scatter(self.xysum[:,0], self.x[:,2], c='k', marker='+')
- ax.errorbar(xdisp, zpos, xerr=err, linestyle='-')
- plt.savefit(self.sid + '-sheardisp.' + outformat, transparent=True)
+ ax = plt.subplot(111)
+ ax.scatter(self.xysum[:,0], self.x[:,2], c='gray', marker='+')
+ ax.errorbar(xdisp, zpos, xerr=err,
+ c='black', linestyle='-', linewidth=1.4)
+ ax.set_xlabel("Horizontal particle displacement, [m]")
+ ax.set_ylabel("Vertical position, [m]")
+ plt.savefig(self.sid + '-sheardisp.' + outformat, transparent=True)