tspecify parameter type - 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 c68bfc0b3496e60ec7ce3a399f621986cf425098
(DIR) parent e7a9c34c62d9607bce050b2cc298db02d4dadfca
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 20 Jan 2015 11:48:19 +0100
specify parameter type
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -2048,7 +2048,7 @@ class sim:
# Show radii as histogram
if histogram:
- fig = plt.figure(figsize=(15,10), dpi=300)
+ fig = plt.figure(figsize=(8,8))
figtitle = 'Particle size distribution, {0} particles'.format(\
self.np[0])
fig.text(0.5,0.95,figtitle,horizontalalignment='center',\
t@@ -5200,7 +5200,7 @@ class sim:
:param outformat: File format of the output plot
:type outformat: str
'''
- fig = plt.figure(8,6)
+ fig = plt.figure(figsize=[8,6])
t = numpy.linspace(self.time_current[0], self.time_total[0])
f = A*numpy.sin(2.0*numpy.pi*f*t + phi)
plt.plot(t, f)