patch graphic in gui
- From: "Stefan Lang" <stefanlangREMOVETHIS@xxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 12:28:59 +0000 (UTC)
Hello,
I'm trying to develop a GUI with axes and several buttons.
First of all I'm loading a 'patch' graphic into the axes.
Then I switch to 'pan' mode to drag the patch around. After
switching to 'rotate3d' I can drag the graphic out of axis
area (for example over the pushbuttons).
For reconstruction:
- choose "Blank GUI"Guide %open GUI Editor
- draw one axes and place to buttons
- in the "OpeningFcn" write:
x = [0 0;0 1;1 1];
y = [1 1;2 2;2 1];
z = [1 1;1 1;1 1];
tcolor(1,1,1:3) = [1 1 1];
tcolor(1,2,1:3) = [.7 .7 .7];
patch(x,y,z,tcolor);
in the pushbutton1_Callback function write:
pan
in the pushbutton2_Callback fcn write:
rotate3d
- run it
- switch to 'pan' mode. This is, how it is supposed to be.
- after switching to 'rotate3d' mode and rotating it, try
to move ('pan') the graphic again. It now can be moved
outside the axis area. That's not what I want.
Does anyone know how to fix this behaviour?
Thanks, Stefan
.
- Prev by Date: Re: support embedded matlab function
- Next by Date: Re: How to read and analyze GOME data
- Previous by thread: cell array to normal array
- Next by thread: Re: Problem with GUI in matlab
- Index(es):