Rank: 58984 based on 0 downloads (last 30 days) and 0 file submitted
photo

Brendan

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Brendan
Updated File Comments Rating
04 May 2012 GUI Layout Toolbox Layout management objects for MATLAB GUIs Author: Ben Tordoff

Hi Ben,

Cracking piece of kit - should definitely become part of core MATLAB.

One issue though, - tabpanels don't appear to support 3D plotting with transparency. I have an application where I need two panels for 3D graphics and two for 2D graphics. I want to use lighting and transparancy in my 3D plots (so render with opengl). I'm having problems doing this.

For example:

f = figure();
p = uiextras.TabPanel( 'Parent', f, 'Padding', 5 );

axes( 'Parent', p );
plot( sin(0:0.1:2*pi) );

axes( 'Parent', p );
surf( peaks )

p.TabNames = {'Sin', 'Peaks'};

doesn't appear to work properly. A portion of the 3D axes are visible in the 2D panel. I can remove this effect by switching the renderer to zbuffer but then I can't use transparency.

I'm guessing that this has something to do with the way that MATLAB is rendering the components - does anyone have any ideas for a workaround?

Cheers,

B

Contact us