That is one solution, but perhaps I should have asked about a solution for contourf as well. It would be preferable to be able to use a logarithmic colormap rather than translating the variable.