# 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)
Aisha Mohamed el 16 de Jul. de 2022
Respondida: Nivedita el 7 de Sept. de 2023
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.
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Respuestas (1)

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:
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

### Categorías

Más información sobre Calculus en Help Center y File Exchange.

### Community Treasure Hunt

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

Start Hunting!

Translated by