From b2d0d401de696287825a156e27898357ae8387cd Mon Sep 17 00:00:00 2001 From: Michael Joyce Date: Fri, 13 Jun 2014 07:50:52 -0700 Subject: [PATCH] CLIMATE-474 - Make colorbar labels not use scientific notation --- ocw/plotter.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ocw/plotter.py b/ocw/plotter.py index 6d7940da..d0f6b62e 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)