如何在 Matlab 上的(半)对数 3d 图上获得漂亮的色标?
通过这个问题通过外部站点,我意识到我解决了一个问题,只是为了得到另一个问题: MESH 和 SURF 函数的对数标度 C=Z 参数效果不佳。 您得到的只是一个蓝色图表,没有通常的颜色渐变,这是通过传递 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否看过caxis< /a> 命令? 我还建议您查看 CData 和CDataMapping属性。 我希望这些链接指向正确的方向。
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.
我会搭载@阿齐姆的回答。 使用 caxis,您应该能够为您的配色方案定义对数断点,这将防止整个图表变成蓝色。 我不记得这是否可以通过图形属性自动完成。
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.