timprove plot geometry - sphere - GPU-based 3D discrete element method algorith… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit e95e18048fbccdb54388abf00714a4a2e4eab71b | |
parent 6f4771026b45855d06954c589b1b3db7f01c6922 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 21 Jan 2015 12:41:21 +0100 | |
improve plot geometry | |
Diffstat: | |
M python/sphere.py | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -5212,6 +5212,7 @@ class sim: | |
plt.grid() | |
plt.xlabel(xlabel) | |
plt.ylabel(ylabel) | |
+ plt.tight_layout() | |
filename = self.sid + '-sin.' + outformat | |
plt.savefig(filename) | |
print(filename) |