Added colorbar utility code from exchange site.