[cig-commits] r22435 - short/3D/PyLith/benchmarks/trunk/static/performance/solvertest

brad at geodynamics.org brad at geodynamics.org
Thu Jun 27 14:48:17 PDT 2013


Author: brad
Date: 2013-06-27 14:48:17 -0700 (Thu, 27 Jun 2013)
New Revision: 22435

Modified:
   short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py
Log:
Added ability to plot scaling figure in landscape.

Modified: short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py	2013-06-27 00:02:40 UTC (rev 22434)
+++ short/3D/PyLith/benchmarks/trunk/static/performance/solvertest/plot_scaling.py	2013-06-27 21:48:17 UTC (rev 22435)
@@ -88,9 +88,12 @@
 
 figure = matplotlibext.Figure()
 figure.open(3.0, 5.25, margins=[[0.5, 0.35, 0.15], [0.42, 0.4, 0.05]], dpi=150)
+#figure.open(6.0, 3.25, margins=[[0.55, 0.7, 0.15], [0.42, 0.4, 0.05]], dpi=150)
 
 ncols = 1
 nrows = 2
+#ncols = 2
+#nrows = 1
 
 icol = 0
 irow = 0
@@ -148,6 +151,7 @@
     ax.add_artist(l1)
 
 irow += 1
+#icol += 1
 ax = figure.axes(nrows+header, ncols, irow+1+header, icol+1)
 
 for c in cells:
@@ -161,11 +165,11 @@
 ax.set_xlabel("# Processors")
 
 ax.set_ylim((1, 100))
-if icol == 0:
+if icol == ncols-1:
     ax.set_ylabel("# Iterations")
 else:
     ax.set_yticklabels([])
     ax.set_ylabel("")
 
 pyplot.show()
-pyplot.savefig('solvertest_scaling.eps')
+pyplot.savefig('solvertest_scaling.pdf')



More information about the CIG-COMMITS mailing list