Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
uipanel does not clip?

Subject: uipanel does not clip?

From: Petr Krysl

Date: 14 Apr, 2011 14:45:05

Message: 1 of 2

I want to divide a figure into two panels, and I want axes in the two panels that are clipped to the extent of the panel. However when I code it as

        hpMesh = uipanel('Parent',fig,'Title','Structure','FontSize',12,...
            'BackgroundColor',[0.6, 0.5, 0.9],...
            'Position',[0.51, 0.01, 0.44, 0.98], 'Clipping','on');
        hMesh=axes('position',[0.1, 0.1, 0.8, 0.8],'Parent',hpMesh, 'Clipping','on');
        hpDisplays = uipanel('Parent',fig,'Title','Monitoring','FontSize',12,...
            'BackgroundColor', [0.6, 0.5, 0.9],...
            'Position',[0.01, 0.01, 0.49, 0.98], 'Clipping','on');
        hKE=subplot('position',[0.19, 0.1, 0.78, 0.35],'Parent',hpDisplays);
        hmu=subplot('position',[0.19, 0.55, 0.78, 0.35],'Parent',hpDisplays);

the plotting in all the axes sticks out from the panel and is not be clipped by it. Should I do something differently, or is this a bug?



Subject: uipanel does not clip?

From: ImageAnalyst

Date: 14 Apr, 2011 15:13:20

Message: 2 of 2

I know - I get bitten by that bug all the time. For example something
may not stick out on my computer but on another computer it might. I
consider it a bug. Just have to live with it I guess.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us