[cig-commits] r19994 - short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott
brad at geodynamics.org
brad at geodynamics.org
Wed Apr 25 16:14:42 PDT 2012
Author: brad
Date: 2012-04-25 16:14:41 -0700 (Wed, 25 Apr 2012)
New Revision: 19994
Modified:
short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/plot_profiles.py
Log:
Updated plot script for multiple resolutions.
Modified: short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/plot_profiles.py
===================================================================
--- short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/plot_profiles.py 2012-04-25 23:13:12 UTC (rev 19993)
+++ short/3D/PyLith/benchmarks/trunk/quasistatic/sceccrustdeform/savageprescott/plot_profiles.py 2012-04-25 23:14:41 UTC (rev 19994)
@@ -180,16 +180,19 @@
if irow == 0 and icol == ncols-1:
+ labels = ["Analytic"]
proxies = []
proxies.append(lines.Line2D((0,0),(1,1), color='fg'))
isim = 0
- for c in cells:
- proxies.append(lines.Line2D((0,0),(1,1),
- color=lineStyle[isim][0],
- dashes=lineStyle[isim][1]))
- isim += 1
+ for r in res:
+ for c in cells:
+ labels.append("%s %s" % (c, r))
+ proxies.append(lines.Line2D((0,0),(1,1),
+ color=lineStyle[isim][0],
+ dashes=lineStyle[isim][1]))
+ isim += 1
- ax.legend(proxies, ["Analytic"] + cells,
+ ax.legend(proxies, labels,
loc="lower right",
bbox_to_anchor=(1,1.2),
borderaxespad=0)
More information about the CIG-COMMITS
mailing list