Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

CLIMATE-474 - Make colorbar labels not use scientific notation #76

Merged
merged 1 commit into from
Jun 13, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions ocw/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down