pcolor plots are transparent by default; I want opaque

On a linux cluster, when I use Matlab R2008a or R2012a on hostA, then this code: pcolor(z);shading flat; creates plots which are transparent by default (which I find awkward). When I use Matlab version R006b on hostB (which uses the same home space, matlab startup files etc as hostA) then pcolor creates plots which are opaque by default. Any clue why this is happening? How can I create opaque plots by default on hostA?

1 Comment

With MATLAB R2012a on Linux, I'm seeing an opaque image for the following code:
f = figure; p = pcolor(magic(15));
shading flat
get(p,'FaceAlpha')
get(f,'Renderer')
Is there anything special about the environment in which you're running your code? What else is already in the figure? What happens if you run the same code I've tried?

Sign in to comment.

Answers (1)

Why are you using pcolor() anyway? Did you notice that your 15x15 matrix only shows 14x14 little squares? Is that what you want? Why not use image() or imshow() instead?

Asked:

on 9 Jul 2013

Community Treasure Hunt

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

Start Hunting!