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