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 f4444be4ce16ca00615956b453018563811f771c
(DIR) parent b2a8f36f06d9f3b9a2f2aaa1603c1b2edb5a3aa5
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Wed, 2 Jan 2013 12:51:05 +0100
changed fig text precision
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -1295,8 +1295,8 @@ def visualize(project, method = 'energy', savefig = True, outformat = 'png'):
# Plot stresses
if (outformat != 'txt'):
- shearinfo = "$\\tau_u = {}$ Pa at $\gamma = {}$".format(tau_u, tau_u_shearstrain)
- fig.text(0.5,0.05,shearinfo,horizontalalignment='center',fontproperties=FontProperties(size=14))
+ shearinfo = "$\\tau_u = {:.4}$ Pa at $\gamma = {:.4}$".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 [-]')
ax1.set_ylabel('Stress [Pa]')