tfix matplotlib call - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 4c39c4f96c6f955c519ccb02cf842509052f53fd
DIR parent fe33d48250377a062f5ee9b99f652973065d366b
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 18 May 2015 15:43:02 +0200
fix matplotlib call
Diffstat:
M python/sphere.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/python/sphere.py b/python/sphere.py
t@@ -5424,8 +5424,9 @@ class sim:
lw = (f_n - f_n_lim)/(f_n_max - f_n_lim)*lw_max
#print lw
- axfc1 = plt.plot([x1,x2], [z1,z2], '-k', linewidth=lw)
+ plt.plot([x1,x2], [z1,z2], '-k', linewidth=lw)
+ axfc1 = plt.gca()
axfc1.spines['right'].set_visible(False)
axfc1.spines['left'].set_visible(False)
# Only show ticks on the left and bottom spines