tfix force chain axis limits - sphere - GPU-based 3D discrete element method al… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 150551a348e8d69734ab67aeff8e577cb743c165 | |
parent 4c39c4f96c6f955c519ccb02cf842509052f53fd | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 18 May 2015 16:05:13 +0200 | |
fix force chain axis limits | |
Diffstat: | |
M python/sphere.py | 6 +++--- | |
1 file changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -5434,13 +5434,13 @@ class sim: | |
axfc1.yaxis.set_ticks_position('none') | |
#axfc1.set_xticklabels([]) | |
#axfc1.set_yticklabels([]) | |
- axfc1.set_xlim([numpy.min(data[I[0],0]), numpy.max(data[I[0],0])]) | |
- axfc1.set_ylim([numpy.min(data[I[0],2]), numpy.max(data[I[0],2])]) | |
+ axfc1.set_xlim([self.origo[0], self.L[0]]) | |
+ axfc1.set_ylim([self.origo[2], self.L[2]]) | |
axfc1.set_aspect('equal') | |
plt.xlabel('$x$ [m]') | |
plt.ylabel('$z$ [m]') | |
- plt.grid(True) | |
+ plt.grid(False) | |
plt.savefig(outfolder + '/fc-' + self.sid + '-' + \ | |
str(self.time_step_count[0]) + '.' + \ | |
graphics_format,\ |