timproved plot - 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 f1a6e0aa288415dd17d8eeb6f6b1ba45dfa1ef6a
 (DIR) parent 556354081ff5c44ccbd6688687abbb2af2972466
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Thu,  2 Oct 2014 20:14:07 +0200
       
       improved plot
       
       Diffstat:
         M python/shear-results.py             |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/python/shear-results.py b/python/shear-results.py
       t@@ -102,7 +102,7 @@ for c in numpy.arange(1,len(cvals)+1):
        #fig = plt.figure(figsize=(8,8)) # (w,h)
        #fig = plt.figure(figsize=(8,12))
        fig = plt.figure(figsize=(8,16))
       -fig.subplots_adjust(vspace=0)
       +fig.subplots_adjust(hspace=0.0)
        
        #plt.subplot(3,1,1)
        #plt.ticklabel_format(style='sci', axis='y', scilimits=(0,0))
       t@@ -148,7 +148,7 @@ ax3.set_ylabel('Fluid pressure $p_\\text{f}$ [kPa]')
        ax4.set_ylabel('Particle contact force $||\\boldsymbol{f}_\\text{p}||$ [N]')
        
        #ax1.set_xlim([200,300])
       -ax2.set_ylim([550,650])
       +ax3.set_ylim([550,650])
        
        plt.setp(ax1.get_xticklabels(), visible=False)
        plt.setp(ax2.get_xticklabels(), visible=False)
       t@@ -169,6 +169,7 @@ ax4.legend(loc='best', prop={'size':18}, fancybox=True,
                framealpha=legend_alpha)
        
        plt.tight_layout()
       +plt.subplots_adjust(hspace=0.0)
        filename = 'shear-' + str(int(sigma0/1000.0)) + 'kPa-stress-dilation.pdf'
        #print(os.getcwd() + '/' + filename)
        plt.savefig(filename)