Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Contour not rendered for constant ZData

Anyone can help me solve this error?

Warning: Contour not rendered for constant ZData
In contourf>parseargs at 467
In contourf at 64
In example at 298

Thanks in advance

like image 800
user3141757 Avatar asked Oct 26 '25 21:10

user3141757


1 Answers

A matrix with the same value everywhere (constant ZData) doesn't have any level change, so no contour can be drawn.

Example:

contourf([0 0 0 0; 0 0 0 0; 0 0 0 0; 0 0 0 0; 0 0 0 0])

It's no error, just a warning, as some people might wonder why it plots no contour.

like image 82
jaminka evening Avatar answered Oct 29 '25 06:10

jaminka evening