Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E5CF10BBD for ; Wed, 31 Jul 2013 18:48:09 +0000 (UTC) Received: (qmail 81990 invoked by uid 500); 31 Jul 2013 18:48:09 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 81968 invoked by uid 500); 31 Jul 2013 18:48:09 -0000 Mailing-List: contact commits-help@climate.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.incubator.apache.org Delivered-To: mailing list commits@climate.incubator.apache.org Received: (qmail 81961 invoked by uid 99); 31 Jul 2013 18:48:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 18:48:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 18:48:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 06B262388906; Wed, 31 Jul 2013 18:47:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1508986 - /incubator/climate/branches/RefactorInput/ocw/plotter.py Date: Wed, 31 Jul 2013 18:47:47 -0000 To: commits@climate.incubator.apache.org From: goodman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130731184748.06B262388906@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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,