timprove plot layout - 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 2df5bb451a6f7865308c0fe9358edda334c700a9
DIR parent 593ddfb3e6aa44ab70d924e47a933a15128f381a
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
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(-)
---
DIR 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)