Hi,
Whenever I use pcolor for a checkerboard plot the lines of my x-axis and y-axis disappear. This problem can be reproduced even with the example in the matlab help!
Try this (looks OK):
figure;pcolor(hadamard(20))colormap(gray(2))shading flat;axis ijaxis square
and compare against this (x,y axis disappears):
figure;pcolor(hadamard(20))colormap(gray(2))shading flat;axis ij
For whatever reason using pcolor together with shading flat makes the axis disappear (only the axis on the bottom and left of the plot). Why is that and why does using the axis square command make a difference?
In principle the axis square command would fix the problem but I don't want my axes to be square. Using axis normal instead does NOT fix the problem…
Any ideas?
Best Answer