tchanged fig text precision - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 45188dc7dbc00a30c9eeab280bbd087f055c5360
 (DIR) parent f4444be4ce16ca00615956b453018563811f771c
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       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(-)
       ---
 (DIR) diff --git a/python/sphere.py b/python/sphere.py
       t@@ -1295,7 +1295,7 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
        
                # Plot stresses
                if (outformat != 'txt'):
       -            shearinfo = "$\\tau_u = {:.4}$ Pa at $\gamma = {:.4}$".format(tau_u, tau_u_shearstrain)
       +            shearinfo = "$\\tau_u$ = {:.3} Pa at $\gamma$ = {:.3}".format(tau_u, tau_u_shearstrain)
                    fig.text(0.5,0.03,shearinfo,horizontalalignment='center',fontproperties=FontProperties(size=14))
                    ax1 = plt.subplot2grid((2,1),(0,0))
                    ax1.set_xlabel('Shear strain [-]')