tchanged fig text precision - sphere - GPU-based 3D discrete element method alg… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 45188dc7dbc00a30c9eeab280bbd087f055c5360 | |
parent f4444be4ce16ca00615956b453018563811f771c | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 2 Jan 2013 12:57:11 +0100 | |
changed fig text precision | |
Diffstat: | |
M python/sphere.py | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1295,7 +1295,7 @@ def visualize(project, method = 'energy', savefig = True… | |
# Plot stresses | |
if (outformat != 'txt'): | |
- shearinfo = "$\\tau_u = {:.4}$ Pa at $\gamma = {:.4}$".format(tau_… | |
+ shearinfo = "$\\tau_u$ = {:.3} Pa at $\gamma$ = {:.3}".format(tau_… | |
fig.text(0.5,0.03,shearinfo,horizontalalignment='center',fontprope… | |
ax1 = plt.subplot2grid((2,1),(0,0)) | |
ax1.set_xlabel('Shear strain [-]') |