From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Error in 'pixelbounds'
Date: Thu, 3 Jan 2013 00:53:11 +0000 (UTC)
Organization: Georgia Institute of Technology
Lines: 3
Message-ID: <kc2kpn$e0i$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1357174391 14354 (3 Jan 2013 00:53:11 GMT)
NNTP-Posting-Date: Thu, 3 Jan 2013 00:53:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 939004
Xref: comp.soft-sys.matlab:785815

I realize it's undocumented for a reason, but i've noticed that sometimes when i'm using the opengl renderer, getting an axes pixelbounds gives an extremely wrong answer sometimes. (And then sometimes doing the exact same process it works just fine). To add to the debugging difficulty, it always gives the correct answer if there is a debug breakpoint anywhere in any mfile.

By any chance has anyone found a line of code i could put before get(...,'pixelbounds') to ensure that it always gives correct values? Drawnow/pause don't fix it.