Pcolor figure quality (not an exporting problem)

5 views (last 30 days)
I have a pcolor figure which changes quality drastically depending on whether I have a particular element visible or not. The good figure has an array of small dots (basically just using hdl = plot(x,y,'r.')) overlaid on top of the pcolor image at each of the "grid points". I don't always want to see those dots but when I set the dots to be invisible (set(hdl,'visible','off') the quality of the whole figure looks terrible: bad figure.
I can restore the quality by just making those grid points visible again, but I don't always want them. Does anyone have any suggestions?
Thanks

Accepted Answer

Walter Roberson
Walter Roberson on 20 Apr 2012
Hmmm... could I ask you to check
get(gcf, 'Renderer')
in each of the two cases, the dots visible or not?
  2 Comments
Bradford
Bradford on 20 Apr 2012
You're a genius Walter, Thanks!
for some reason when I remove the dots it *sometimes* changes from the zbuffer to OpenGL renderer. Just setting it back to zbuffer fixes it (should have known based on my exporting issues)
Thanks!
Walter Roberson
Walter Roberson on 20 Apr 2012
I'd be curious about whether using
opengl software
would also solve the problem. If it does, then it would help to know which MATLAB release and OS you are using, 32 or 64 bit MATLAB, and also which graphics card you are using.

Sign in to comment.

More Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!