I am plotting a contourplot with contourf. If I use the log10(Z) in the contourplot, then my Colormap will be in log sclae too (For example my values in Z are from 1e17 to 1e20, so if I get the log10 I will get values from 17 to 20 and so the colorbar will have values from 17 to 20 as well). What I want though is to have the colorbar with different labels (1E17 1E18 1E19 …). I know that you can change the labels manually. My problem is that I wrote a script and that the number of ticks depends on my Matrix (Z). So there could be just 2 ticks from 1E14 to 1E15 and there could be like 6 ticks from 1E16 to 1E21. So the renaming of the ticks would have to be variable with number of ticks. I was starting some if cases but I thought that you maybe have a different idea. P.S. I need to plot the values in log10 scale
Thank you very much
Best Answer