climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1508986 - /incubator/climate/branches/RefactorInput/ocw/plotter.py
Date Wed, 31 Jul 2013 18:47:47 GMT
Author: goodman
Date: Wed Jul 31 18:47:47 2013
New Revision: 1508986

URL: http://svn.apache.org/r1508986
Log:
Add check for subtitles in draw_taylor_diagram

Modified:
    incubator/climate/branches/RefactorInput/ocw/plotter.py

Modified: incubator/climate/branches/RefactorInput/ocw/plotter.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/plotter.py?rev=1508986&r1=1508985&r2=1508986&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/plotter.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/plotter.py Wed Jul 31 18:47:47 2013
@@ -331,7 +331,8 @@ def draw_taylor_diagram(results, names, 
         for i, (stddev, corrcoef) in enumerate(data):
             dia.add_sample(stddev, corrcoef, marker='$%d$' % (i + 1), ms=6, 
                            label=names[i])
-            dia._ax.set_title(subtitles[i])
+            if subtitles is not None:
+                dia._ax.set_title(subtitles[i])
     
     # Add legend
     legend = fig.legend(dia.samplePoints, 



Mime
View raw message