'Adjust the properties of the axes to be adequate for colorbar display.'

def _config_axes(self):

    ax = self.ax
    axes_locator = CbarAxesLocator(ax.get_axes_locator(), extend=self.extend, orientation=self.orientation)
    ax.set_axes_locator(axes_locator)
    def _f():
        return 1.0
    ax.get_data_ratio = _f
    ax.get_data_ratio_log = _f
    ax.set_frame_on(True)
    ax.set_navigate(False)
    self.ax.set_autoscalex_on(False)
    self.ax.set_autoscaley_on(False)
    if (self.orientation == u'horizontal'):
        ax.xaxis.set_label_position(u'bottom')
        ax.set_yticks([])
    else:
        ax.set_xticks([])
        ax.yaxis.set_label_position(u'right')
        ax.yaxis.set_ticks_position(u'right')
