How to get a beautiful color scale on (semi-)logarithmic 3d plots on Matlab?
Asked Answered
S

2

3

After having this question answered through a link to an external site, I realized that I solved a problem, just to get another one: On a logarithm scale the C=Z parameter of MESH and SURF functions don't work very well. All you get is a blue graph, without the usual color gradient, that you get by passing 3 parameters.

How to revert that?

Stockish answered 11/1, 2009 at 21:37 Comment(0)
R
2

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

Renatorenaud answered 11/1, 2009 at 21:53 Comment(0)
C
2

I'll piggyback on @Azim's answer. Using caxis, you should be able to define logarithmic breakpoints for your color scheme, which will prevent your entire graph from going to blue. I don't remember if this can be done automatically with graph properties.

Carbrey answered 11/1, 2009 at 23:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.