From: Subrahmanya Shettigar on 22 Jun 2010 04:58 The problem is I have used two axes and two buttons in GUI. When i click on the first button image should be displayed on first axes. when i click on second button different figure should be displayed on second axes. But on the screen only one image should be seen at time (like toggle). (for Testing purpose I put the axes position in different locations on the screen); I tried but when i click second button it displays the second image along with the first image. I have set first axes visibility property off. still it is displyed when i press second button. Is there any seperate setting for the axes to turn off(not visible state) and turn on(visible state) when ever we required. Please help me.
From: Jan Simon on 22 Jun 2010 07:22 Dear Subrahmanya, > The problem is I have used two axes and two buttons in GUI. When i click on the first button image should be displayed on first axes. when i click on second button different figure should be displayed on second axes. But on the screen only one image should be seen at time (like toggle). (for Testing purpose I put the axes position in different locations on the screen); > I tried but when i click second button it displays the second image along with the first image. I have set first axes visibility property off. still it is displyed when i press second button. > Is there any seperate setting for the axes to turn off(not visible state) and turn on(visible state) when ever we required. The visibility of the AXES object is controlled by the property 'Visibility'. You have done this already. I assume, your problem might be, that you want to hide the image also: set the Visibility of the image object to 'off' also. Jan
From: Steven Lord on 22 Jun 2010 11:11 "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message news:hvq6cu$ov3$1(a)fred.mathworks.com... > Dear Subrahmanya, > >> The problem is I have used two axes and two buttons in GUI. When i click >> on the first button image should be displayed on first axes. when i click >> on second button different figure should be displayed on second axes. But >> on the screen only one image should be seen at time (like toggle). (for >> Testing purpose I put the axes position in different locations on the >> screen); I tried but when i click second button it displays the second >> image along with the first image. I have set first axes visibility >> property off. still it is displyed when i press second button. >> Is there any seperate setting for the axes to turn off(not visible state) >> and turn on(visible state) when ever we required. > > The visibility of the AXES object is controlled by the property > 'Visibility'. You have done this already. I assume, your problem might be, > that you want to hide the image also: set the Visibility of the image > object to 'off' also. Actually, the property name is 'Visible' and the values are 'on' or 'off'. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#Visible -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: ImageAnalyst on 22 Jun 2010 22:30 I could be wrong but in my experience, when you display and image in an axes and then set the axes visibility to off, it only hides the tick marks (if any were displayed) and does not affect the visibility of the image. Very inconvenient. What I do in cases like this is to have a panel contain the axes and then set the visibility of the panel on or off. Again, inconvenient. Alternatively you can use findobj() to find the axes and all its children (images, text, etc.) and then hide each of them or show each of them. Also inconvenient. But those are the two ways I know of how to do it.
From: Subrahmanya Shettigar on 23 Jun 2010 05:58 Thank you very much sir subrahmanya dear sir, I did not get 'image object' I just used axes(handle) after this i used imshow(). "Steven Lord" <slord(a)mathworks.com> wrote in message <hvqjqd$i7e$1(a)fred.mathworks.com>... > > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message > news:hvq6cu$ov3$1(a)fred.mathworks.com... > > Dear Subrahmanya, > > > >> The problem is I have used two axes and two buttons in GUI. When i click > >> on the first button image should be displayed on first axes. when i click > >> on second button different figure should be displayed on second axes. But > >> on the screen only one image should be seen at time (like toggle). (for > >> Testing purpose I put the axes position in different locations on the > >> screen); I tried but when i click second button it displays the second > >> image along with the first image. I have set first axes visibility > >> property off. still it is displyed when i press second button. > >> Is there any seperate setting for the axes to turn off(not visible state) > >> and turn on(visible state) when ever we required. > > > > The visibility of the AXES object is controlled by the property > > 'Visibility'. You have done this already. I assume, your problem might be, > > that you want to hide the image also: set the Visibility of the image > > object to 'off' also. > > Actually, the property name is 'Visible' and the values are 'on' or 'off'. > > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/axes_props.html#Visible > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ > To contact Technical Support use the Contact Us link on > http://www.mathworks.com >
|
Next
|
Last
Pages: 1 2 Prev: Morphological Operations for 3D Meshes Next: modify duplicate column data |