Is it necessary to use the same period of zlim and caxis when we plot the second order function and its cosin?

1 visualización (últimos 30 días)
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.

Respuestas (1)

Nivedita
Nivedita el 7 de Sept. de 2023
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:

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by