I'm trying to create a 2D plot with a color map using pgfplots. I've managed to get the overall behaviour that I want, but I would like the color map to be logarithmic, rather than linear. The best I have managed is to use the meta expr key, but then the color bar shows 1-4 instead of 10^1 through 10^4. Below is my working example.
\begin{tikzpicture}
\begin{semilogyaxis}[colorbar,
xlabel = create energy (keV),
ylabel = deposit energy (kev),
]
\pgfplotstableread{../endep_log_au_30_0_0.csv}\mytable %
\addplot+[scatter, only marks, scatter src=explicit, mark=square]
table[x=createEn,y=depEn,meta expr=ln(\thisrow{tot})/ln(10)] {\mytable};
\end{semilogyaxis}
\end{tikzpicture}
Is there a way to modify how the labels appear on the colorbar or set it to be logarithmic? Is there a different way I should be approaching this problem?
(Unfortunately I cannot post an image as a new user)

\endep_log_au_30_0_0.csvare missing, which makes it harder to help with solving the problem. – Jake Jul 21 '11 at 23:59