Is it necessary to use the same period of zlim and caxis when we plot the second order function and its cosin?
2 次查看(过去 30 天)
显示 更早的评论
I am tried to plot the second order function (thank you very much for all who helped me to do that ) .
My question is
Is it necessary to use the same period of zlim and caxis when we plot the second order function and its cosin?
for example in the following figure, I used different periods for zlim([-5 5]) and caxis([-1 1]) . I know that I can adjust this value as needed, but, is the different values affect the accuracy of study the figure?
I appreciate any help.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1067310/image.png)
0 个评论
回答(1 个)
Nivedita
2023-9-7
Hi Aisha!
I understand that you are trying to understand the relationship between the limits specified by the “zlim” and “caxis” functions, and how they affect the accuracy of studying the figure when they are changed.
It is not necessary to have the same limits for “zlim” and “caxis” but it is recommended as it increases the readability of the plot. When the "caxis" interval is shortened, all the z-axis value less than the lower limit will be mapped to a single color. Similarly, all the z-axis values more than the upper limit will be mapped to a single color. This will lead to many values being grouped under the same color and you might not be able to differentiate amongst them in the plot.
You can refer to the documentation of “clim” and go through the examples provided to have a better understanding how the limits of “clim” affect the inference from the plots:
For more information on the “zlim” function, you can refer to the following link:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!