When I use the command 'pcolor' on a large matrix I get a blank plot - does anyone know why?

When I use the command 'pcolor' on a large matrix I get a blank plot - does anyone know why?
I want to use 'pcolor' to plot a matrix of 6144 by 150 - if I just generate a matrix of this size using a random generator e.g.: X=rand(6144,150)
and then plot: pcolor(X)
I get a blank screen but pcolor works fine for e.g.: X=rand(25,10)
Please help. Thanks

 Accepted Answer

Is it blank, or is it black?
h = pcolor(X);
set(h, 'EdgeColor', 'none')

4 Comments

pcolor() is really just
surf()
view(2)
But by default surf() used black edges between faces. The black edges stay a constant width as you shrink the size of the faces to fit more faces onto the display; after a point, the black edges take over everything. So you want to turn off the edges by setting the surface EdgeColor property to 'none'
Hi Walter. What do you mean by "face"? Just the "filled square" right?

Sign in to comment.

More Answers (1)

Thank you! Yes - it was black not blank. That solved it... what did you do?

2 Comments

This was asked 5 years ago.... but just incase for anyone in the future lol. The set edgecolor essentially took out all of the borders of the graph so that you can see the colors. It looked black because the boxes of the matrix were so small that with a border on each block, it looked black.

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!