Introduction
Introduction Statistics Contact Development Disclaimer Help
tchanged fig text precision - sphere - GPU-based 3D discrete element method alg…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit f4444be4ce16ca00615956b453018563811f771c
parent b2a8f36f06d9f3b9a2f2aaa1603c1b2edb5a3aa5
Author: Anders Damsgaard <[email protected]>
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(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -1295,8 +1295,8 @@ def visualize(project, method = 'energy', savefig = True…
# Plot stresses
if (outformat != 'txt'):
- shearinfo = "$\\tau_u = {}$ Pa at $\gamma = {}$".format(tau_u, tau…
- fig.text(0.5,0.05,shearinfo,horizontalalignment='center',fontprope…
+ shearinfo = "$\\tau_u = {:.4}$ Pa at $\gamma = {:.4}$".format(tau_…
+ fig.text(0.5,0.03,shearinfo,horizontalalignment='center',fontprope…
ax1 = plt.subplot2grid((2,1),(0,0))
ax1.set_xlabel('Shear strain [-]')
ax1.set_ylabel('Stress [Pa]')
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.