tprint filename when saving figure in visualize() - sphere - GPU-based 3D discr… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 517744e5bea277a6912c9be2f1187a343881b9bc | |
parent 39b7e6495ec07a933a8cf89eb55d1ff2baeedc5c | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 19 Jan 2015 11:20:37 +0100 | |
print filename when saving figure in visualize() | |
Diffstat: | |
M python/sphere.py | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -5976,7 +5976,9 @@ class sim: | |
# Optional save of figure | |
if (outformat != 'txt'): | |
if savefig: | |
- fig.savefig("{0}-{1}.{2}".format(self.sid, method, outformat)) | |
+ filename = "{0}-{1}.{2}".format(self.sid, method, outformat)) | |
+ fig.savefig(filename) | |
+ print(filename) | |
fig.clf() | |
else: | |
plt.show() |