You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/06/13 16:53:48 UTC
[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 <jo...@apache.org>
Authored: Fri Jun 13 07:50:52 2014 -0700
Committer: Michael Joyce <jo...@apache.org>
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)
[2/2] git commit: Resolve CLIMATE-474. Merge PR #76.
Posted by jo...@apache.org.
Resolve CLIMATE-474. Merge PR #76.
Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/d705549d
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/d705549d
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/d705549d
Branch: refs/heads/master
Commit: d705549d7ec358c0f8fc0cbad95b4bd8c18c288c
Parents: 4beff88 b2d0d40
Author: Michael Joyce <jo...@apache.org>
Authored: Fri Jun 13 07:53:21 2014 -0700
Committer: Michael Joyce <jo...@apache.org>
Committed: Fri Jun 13 07:53:21 2014 -0700
----------------------------------------------------------------------
ocw/plotter.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------