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 <[email protected]> Authored: Fri Jun 13 07:50:52 2014 -0700 Committer: Michael Joyce <[email protected]> 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)
