How to draw (semi-)logarithmic 3d plots? (Matlab)
Asked Answered
B

2

6

I know semilogx and semilogy for 2D plots. There is any equivalent for SURF and MESH?

Bywaters answered 11/1, 2009 at 18:26 Comment(1)
I don't think you've any choice but to do the log calculation yourself.Head
B
4

Have you looked at the XScale, YScale and Zscale axis properties. You can set them to either linear or log. However, to set these properties to log the data needs to be positive. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232 for more details.

Balenciaga answered 11/1, 2009 at 20:45 Comment(2)
Thanks, now I have the same problem as the guy that asked the question you linked: the color now is pretty much the same, how to correct it? You can answer here: #434269Bywaters
I missed that problem. I have placed some hints on my other question but can't test right now. If I find time I will play around with Matlab to see if I can get something to work.Balenciaga
O
5

As stated in the mentioned link, to set all three axes to logarithmic scaling, use

set(gca, 'XScale', 'log', 'YScale', 'log', 'ZScale', 'log')
Oaken answered 7/2, 2013 at 20:31 Comment(0)
B
4

Have you looked at the XScale, YScale and Zscale axis properties. You can set them to either linear or log. However, to set these properties to log the data needs to be positive. See http://www.mathworks.com/matlabcentral/newsreader/view_thread/239232 for more details.

Balenciaga answered 11/1, 2009 at 20:45 Comment(2)
Thanks, now I have the same problem as the guy that asked the question you linked: the color now is pretty much the same, how to correct it? You can answer here: #434269Bywaters
I missed that problem. I have placed some hints on my other question but can't test right now. If I find time I will play around with Matlab to see if I can get something to work.Balenciaga

© 2022 - 2024 — McMap. All rights reserved.