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 991BB1193A for ; Fri, 13 Jun 2014 14:53:49 +0000 (UTC) Received: (qmail 39278 invoked by uid 500); 13 Jun 2014 14:53:49 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 39241 invoked by uid 500); 13 Jun 2014 14:53:49 -0000 Mailing-List: contact commits-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list commits@climate.apache.org Received: (qmail 39229 invoked by uid 99); 13 Jun 2014 14:53:49 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jun 2014 14:53:49 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E09BE933422; Fri, 13 Jun 2014 14:53:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: joyce@apache.org To: commits@climate.apache.org Date: Fri, 13 Jun 2014 14:53:48 -0000 Message-Id: <202c167c6df64c45aae7a1be10b5665d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: CLIMATE-474 - Make colorbar labels not use scientific notation Repository: climate Updated Branches: refs/heads/master 4beff882d -> d705549d7 CLIMATE-474 - Make colorbar labels not use scientific notation Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/b2d0d401 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/b2d0d401 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/b2d0d401 Branch: refs/heads/master Commit: b2d0d401de696287825a156e27898357ae8387cd Parents: 4beff88 Author: Michael Joyce Authored: Fri Jun 13 07:50:52 2014 -0700 Committer: Michael Joyce Committed: Fri Jun 13 07:50:52 2014 -0700 ---------------------------------------------------------------------- ocw/plotter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/b2d0d401/ocw/plotter.py ---------------------------------------------------------------------- diff --git a/ocw/plotter.py b/ocw/plotter.py index 6d7940d..d0f6b62 100644 --- a/ocw/plotter.py +++ b/ocw/plotter.py @@ -548,8 +548,7 @@ def draw_contour_map(dataset, lats, lons, fname, fmt='png', gridshape=(1, 1), ax.set_title(subtitles[i], fontsize='small') # Add colorbar - cbar = fig.colorbar(cs, cax=ax.cax, drawedges=True, orientation='horizontal', - extendfrac='auto', format='%.3e') + cbar = fig.colorbar(cs, cax=ax.cax, drawedges=True, orientation='horizontal', extendfrac='auto') cbar.set_label(clabel) cbar.set_ticks(clevs) cbar.ax.tick_params(labelsize=6) @@ -686,8 +685,7 @@ def draw_portrait_diagram(results, rowlabels, collabels, fname, fmt='png', # Add colorbar cax = ax.cax cbar = fig.colorbar(cs, cax=cax, norm=norm, boundaries=clevs, drawedges=True, - extend=extend, orientation='horizontal', extendfrac='auto', - format='%.2e') + extend=extend, orientation='horizontal', extendfrac='auto') cbar.set_label(clabel) cbar.set_ticks(clevs) cbar.ax.tick_params(labelsize=6)