<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733</link>
    <title>MATLAB Central Newsreader - GUi axes</title>
    <description>Feed for thread: GUi axes</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 30 Jan 2008 06:25:05 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411910</link>
      <author>Hasan Alimli</author>
      <description>Thank you for help,&lt;br&gt;
It is solved!&lt;br&gt;
*The problem was "subplot in GUI".&lt;br&gt;
*The solution lies on the "panel",not "axes".&lt;br&gt;
*Graphics/plots should be drawn into the "panel",not "axes".&lt;br&gt;
*Put a panel with tag property "xyz".&lt;br&gt;
*code is;&lt;br&gt;
a1=subplot(1,2,1,'Parent',handles.xyz);&lt;br&gt;
imshow(I)&lt;br&gt;
a2=subplot(1,2,2,'Parent',handles.xyz);&lt;br&gt;
imshow(Q)&lt;br&gt;
*At the end of this part,"linkaxes" (which is the reason of &lt;br&gt;
using "subplot" instead of "two different axes") comes.&lt;br&gt;
linkaxes([a1 a2],'xy')&lt;br&gt;
*with this code the plot/show area can be fixed with panel &lt;br&gt;
sizes without complexity of properties of axes.&lt;br&gt;
Thank you.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 29 Jan 2008 06:23:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411716</link>
      <author>Hasan Alimli</author>
      <description>First of all thank you for reply,&lt;br&gt;
I have to use "subplot".Because I have to use "linkaxes" &lt;br&gt;
command,and it works only for figures which drawn &lt;br&gt;
by "subplot".with two different axes,it doesn't work.&lt;br&gt;
In addition,there are many problems or troubles similar &lt;br&gt;
with mine.But difference is "subplot".Because also I know &lt;br&gt;
that If I dont use subplot,it is OK.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 16:02:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411615</link>
      <author>Vihang Patil</author>
      <description>"Vihang Patil" &amp;lt;vihang_patil@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fnktdm$7h5$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Hasan Alimli" &amp;lt;su.sayaci@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;fnks2j$grp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Any idea,please?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just a thought&lt;br&gt;
&amp;gt; Instead of using one axes and using a subplot function, &lt;br&gt;
&amp;gt; why dont you use 2 axes.&lt;br&gt;
&amp;gt; ex:&lt;br&gt;
&amp;gt; Drop down 2 axes from the guide menu on to your figure&lt;br&gt;
&amp;gt; Assuming the 2 axes are axes1 and axes2 respectively&lt;br&gt;
&amp;gt; In the pushbutton function use this;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; axes(handles.axes1);%gives focus to first axes&lt;br&gt;
&amp;gt; imshow('image1.jpg');&lt;br&gt;
&amp;gt; drawnow;&lt;br&gt;
&amp;gt; axes(handles.axes2);%gives focus to second axes&lt;br&gt;
&amp;gt; imshow('image2.jpg');&lt;br&gt;
&amp;gt; drawnow;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH&lt;br&gt;
&amp;gt; Vihang&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
Sorry did not read your other statements before posting.&lt;br&gt;
If you are dealing with only one axes, just remove the &lt;br&gt;
definition, axes(handles.axes1); from your Push Button &lt;br&gt;
function. &lt;br&gt;
&lt;br&gt;
You can declare the same in the opening fcn&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 15:47:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411610</link>
      <author>Vihang Patil</author>
      <description>"Hasan Alimli" &amp;lt;su.sayaci@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fnks2j$grp$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Any idea,please?&lt;br&gt;
&lt;br&gt;
Just a thought&lt;br&gt;
Instead of using one axes and using a subplot function, &lt;br&gt;
why dont you use 2 axes.&lt;br&gt;
ex:&lt;br&gt;
Drop down 2 axes from the guide menu on to your figure&lt;br&gt;
Assuming the 2 axes are axes1 and axes2 respectively&lt;br&gt;
In the pushbutton function use this;&lt;br&gt;
&lt;br&gt;
axes(handles.axes1);%gives focus to first axes&lt;br&gt;
imshow('image1.jpg');&lt;br&gt;
drawnow;&lt;br&gt;
axes(handles.axes2);%gives focus to second axes&lt;br&gt;
imshow('image2.jpg');&lt;br&gt;
drawnow;&lt;br&gt;
&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 15:24:03 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411607</link>
      <author>Hasan Alimli</author>
      <description>Any idea,please?&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 12:24:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411576</link>
      <author>Hasan Alimli</author>
      <description>And what about closing/cleaning the axes,the re-show &lt;br&gt;
again,when I click the pusbutton seconly?If so,how can I do &lt;br&gt;
it?&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 12:22:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411574</link>
      <author>Hasan Alimli</author>
      <description>(Sorry for possible repeating in the message,I might be &lt;br&gt;
confused it).&lt;br&gt;
Thank you for reply.&lt;br&gt;
I have to use subplot.Because,when I use two &lt;br&gt;
axes,seperately,to show these two image.the axes width and &lt;br&gt;
height changes and becomes bigger.So I used subplot.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 12:19:02 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411573</link>
      <author>Hasan Alimli</author>
      <description>Thank you for your reply.&lt;br&gt;
I have to use subplot,because when I used two axes to show &lt;br&gt;
these two different picture,the axes width-height changes &lt;br&gt;
and becomes bigger.I lost myself in the property editor of &lt;br&gt;
axes,but could not solve it.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 11:46:46 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411560</link>
      <author>Yumnam Kirani Singh</author>
      <description>The problem is that in subplot, there may be several handles not a signle handle depending on which subwindow you are making your plot. So, there may be incroeect reference of the subplot handles which create your problem.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 11:30:44 -0500</pubDate>
      <title>Re: GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411556</link>
      <author>Hasan Alimli</author>
      <description>I tried it without "subplot",it is OK!&lt;br&gt;
What is the problem with "subplot" in the GUI applications?&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 28 Jan 2008 09:33:01 -0500</pubDate>
      <title>GUi axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/162733#411541</link>
      <author>Hasan Alimli</author>
      <description>Hi,&lt;br&gt;
I have a problem with axes_GUI.&lt;br&gt;
To solve it,I tried many ways which I have got from this &lt;br&gt;
forum or others.And also I know that there are many similar &lt;br&gt;
problem and their solution.Be sure that I have tried &lt;br&gt;
them,but not get the exact solution.Pleae help me.&lt;br&gt;
The problem is;&lt;br&gt;
I made a simple GUI which includes two materials:an axes &lt;br&gt;
and a push button.When I click the push button,I get the &lt;br&gt;
pictures well.But I need to update them sometimes,so I need &lt;br&gt;
to click the push button again,but have an error.&lt;br&gt;
%%%%%%Error%%%%%%%%%%%&lt;br&gt;
??? Error using ==&amp;gt; axes&lt;br&gt;
Invalid object handle.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; axse&amp;gt;pushbutton1_Callback at 82&lt;br&gt;
axes(handles.axes1)&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; gui_mainfcn at 75&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;feval(varargin{:});&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; axse at 42&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
&lt;br&gt;
??? Error while evaluating uicontrol Callback.&lt;br&gt;
&lt;br&gt;
%%%%%%Code%%%%%%%%%%%&lt;br&gt;
function varargout = axse(varargin)&lt;br&gt;
% AXSE M-file for axse.fig&lt;br&gt;
%      AXSE, by itself, creates a new AXSE or raises the &lt;br&gt;
existing&lt;br&gt;
%      singleton*.&lt;br&gt;
%&lt;br&gt;
%      H = AXSE returns the handle to a new AXSE or the &lt;br&gt;
handle to&lt;br&gt;
%      the existing singleton*.&lt;br&gt;
%&lt;br&gt;
%      AXSE('CALLBACK',hObject,eventData,handles,...) calls &lt;br&gt;
the local&lt;br&gt;
%      function named CALLBACK in AXSE.M with the given &lt;br&gt;
input arguments.&lt;br&gt;
%&lt;br&gt;
%      AXSE('Property','Value',...) creates a new AXSE or &lt;br&gt;
raises the&lt;br&gt;
%      existing singleton*.  Starting from the left, &lt;br&gt;
property value pairs are&lt;br&gt;
%      applied to the GUI before axse_OpeningFunction gets &lt;br&gt;
called.  An&lt;br&gt;
%      unrecognized property name or invalid value makes &lt;br&gt;
property application&lt;br&gt;
%      stop.  All inputs are passed to axse_OpeningFcn via &lt;br&gt;
varargin.&lt;br&gt;
%&lt;br&gt;
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI &lt;br&gt;
allows only one&lt;br&gt;
%      instance to run (singleton)".&lt;br&gt;
%&lt;br&gt;
% See also: GUIDE, GUIDATA, GUIHANDLES&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Edit the above text to modify the response to help axse&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Last Modified by GUIDE v2.5 28-Jan-2008 11:09:56&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Begin initialization code - DO NOT EDIT&lt;br&gt;
gui_Singleton = 1;&lt;br&gt;
gui_State = struct('gui_Name',       mfilename, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_Singleton',  gui_Singleton, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_OpeningFcn', @axse_OpeningFcn, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_OutputFcn',  @axse_OutputFcn, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_LayoutFcn',  [] , ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_Callback',   []);&lt;br&gt;
if nargin &amp;&amp; ischar(varargin{1})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_State.gui_Callback = str2func(varargin{1});&lt;br&gt;
end&lt;br&gt;
&amp;nbsp;&lt;br&gt;
if nargout&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin&lt;br&gt;
{:});&lt;br&gt;
else&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
end&lt;br&gt;
% End initialization code - DO NOT EDIT&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% --- Executes just before axse is made visible.&lt;br&gt;
function axse_OpeningFcn(hObject, eventdata, handles, &lt;br&gt;
varargin)&lt;br&gt;
% This function has no output args, see OutputFcn.&lt;br&gt;
% hObject    handle to figure&lt;br&gt;
% eventdata  reserved - to be defined in a future version &lt;br&gt;
of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see &lt;br&gt;
GUIDATA)&lt;br&gt;
% varargin   command line arguments to axse (see VARARGIN)&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Choose default command line output for axse&lt;br&gt;
handles.output = hObject;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Update handles structure&lt;br&gt;
guidata(hObject, handles);&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% UIWAIT makes axse wait for user response (see UIRESUME)&lt;br&gt;
% uiwait(handles.figure1);&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% --- Outputs from this function are returned to the &lt;br&gt;
command line.&lt;br&gt;
function varargout = axse_OutputFcn(hObject, eventdata, &lt;br&gt;
handles) &lt;br&gt;
% varargout  cell array for returning output args (see &lt;br&gt;
VARARGOUT);&lt;br&gt;
% hObject    handle to figure&lt;br&gt;
% eventdata  reserved - to be defined in a future version &lt;br&gt;
of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see &lt;br&gt;
GUIDATA)&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% Get default command line output from handles structure&lt;br&gt;
varargout{1} = handles.output;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&amp;nbsp;&lt;br&gt;
% --- Executes on button press in pushbutton1.&lt;br&gt;
function pushbutton1_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to pushbutton1 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version &lt;br&gt;
of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see &lt;br&gt;
GUIDATA)&lt;br&gt;
&amp;nbsp;&lt;br&gt;
axes(handles.axes1)&lt;br&gt;
&amp;nbsp;&lt;br&gt;
I =imread('41.bmp');&lt;br&gt;
Q =imread('resim.bmp');&lt;br&gt;
&lt;br&gt;
subplot(2,2,3)&lt;br&gt;
imshow(I);&lt;br&gt;
title('Input')&lt;br&gt;
subplot(2,2,4)&lt;br&gt;
imshow(Q);&lt;br&gt;
title('Output')&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
