contourf plot different display problem

1 visualización (últimos 30 días)
Yu Li
Yu Li el 5 de Oct. de 2018
Comentada: Yu Li el 5 de Oct. de 2018
I want to draw a contour plot, the data is similar, the colormap is the same (created by jet(17)), and the data range is the same (caxis([1 17])), the difference is that:
in plot1, the data range is 1-12,
in plot2, the data range is 1-15.
below is the result:
the value in the red circle is in the same color but the display is not.
I also attached the test file and test code.
is there anyway to solve this problem?
Thanks!
Yu
  6 comentarios
jonas
jonas el 5 de Oct. de 2018
Editada: jonas el 5 de Oct. de 2018
It's not the same. The caxis sets the max and min for the colorbar and levellist specifies the contour levels to be drawn. Try setting
caxis([0 100])
and you will see what happens.
Yu Li
Yu Li el 5 de Oct. de 2018
Ok I got it.
Thank you very much!
Bests!
Yu

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by