Use matplotlib locators and formatters to format colorbar