How to get beautiful colors on (semi) logarithmic 3D graphs on Matlab?

After this question was answered by the external site link , I realized that I had solved the problem, just to get another: on the logarithm scale, the C = Z parameter of the MESH and SURF functions does not work very well. All you get is a blue graph, without the usual color gradient that you get by passing 3 parameters.

How to return it?

+3
source share
2 answers

Have you looked at the caxis command ? I could also suggest you look at the CData and CDataMapping surface objects. I hope these links point in the right direction.

+2
source

I will answer @ Azim's answer . Using caxis, you should be able to define logarithmic breakpoints for your color scheme, which will prevent your entire chart from turning blue. I do not remember whether this can be done automatically using the properties of the chart.

+2
source

All Articles