Hello to everyone ,
I'm encountering a problem with matlab using the GUIDE, I have created two push buttons, when I push the first one, I get two subplots embedded in a panel. So far, there is no problem, but when I push on the second button which is an imagesc command (with no subplot command) normally it should take all the figure embedded in the panel, but it is diplayed in the same figure than before in other word as a subplot below the first one of the last figure.
How can i display it on the whole figure and hence delete the old subplots?
I hope that I've been clear enough.
Thanks for your help.
|
|
0
|
|
|
|
Reply
|
scaramanga
|
12/20/2010 3:27:05 PM |
|
On 20/12/10 9:27 AM, scaramanga wrote:
> I'm encountering a problem with matlab using the GUIDE, I have created
> two push buttons, when I push the first one, I get two subplots embedded
> in a panel. So far, there is no problem, but when I push on the second
> button which is an imagesc command (with no subplot command) normally it
> should take all the figure embedded in the panel, but it is diplayed in
> the same figure than before in other word as a subplot below the first
> one of the last figure.
> How can i display it on the whole figure and hence delete the old subplots?
You will have to use clf(), or delete() the old axes, or use subplot(1,1,1)
|
|
0
|
|
|
|
Reply
|
Walter
|
12/20/2010 3:38:42 PM
|
|
Walter Roberson <roberson@hushmail.com> wrote in message <7MKPo.14929$Qi5.12397@newsfe01.iad>...
> On 20/12/10 9:27 AM, scaramanga wrote:
>
> > I'm encountering a problem with matlab using the GUIDE, I have created
> > two push buttons, when I push the first one, I get two subplots embedded
> > in a panel. So far, there is no problem, but when I push on the second
> > button which is an imagesc command (with no subplot command) normally it
> > should take all the figure embedded in the panel, but it is diplayed in
> > the same figure than before in other word as a subplot below the first
> > one of the last figure.
> > How can i display it on the whole figure and hence delete the old subplots?
>
> You will have to use clf(), or delete() the old axes, or use subplot(1,1,1)
Unfortunately clf (as well as delete) clear all the figure i.e. my GUI window and if I use subplot(1,1,1) for the second button and I push on it first, then the figure I get is resized over all the GUI window.
|
|
0
|
|
|
|
Reply
|
scaramanga
|
12/20/2010 3:49:06 PM
|
|
On 20/12/10 9:49 AM, scaramanga wrote:
> Walter Roberson <roberson@hushmail.com> wrote in message
> <7MKPo.14929$Qi5.12397@newsfe01.iad>...
>> On 20/12/10 9:27 AM, scaramanga wrote:
>>
>> > I'm encountering a problem with matlab using the GUIDE, I have created
>> > two push buttons, when I push the first one, I get two subplots
>> embedded
>> > in a panel. So far, there is no problem, but when I push on the second
>> > button which is an imagesc command (with no subplot command)
>> normally it
>> > should take all the figure embedded in the panel, but it is diplayed in
>> > the same figure than before in other word as a subplot below the first
>> > one of the last figure.
>> > How can i display it on the whole figure and hence delete the old
>> subplots?
>>
>> You will have to use clf(), or delete() the old axes, or use
>> subplot(1,1,1)
>
> Unfortunately clf (as well as delete) clear all the figure i.e. my GUI
> window and if I use subplot(1,1,1) for the second button and I push on
> it first, then the figure I get is resized over all the GUI window.
Yes, but those behaviours are not problems, as you specifically asked
"How can i display it on the whole figure". Did you perhaps mean "whole
panel" instead? I do not have an immediate solution for that and I need
to do something else now, sorry.
|
|
0
|
|
|
|
Reply
|
Walter
|
12/20/2010 4:21:28 PM
|
|
Walter Roberson <roberson@hushmail.com> wrote in message <coLPo.5252$sx4.2491@newsfe02.iad>...
> On 20/12/10 9:49 AM, scaramanga wrote:
> > Walter Roberson <roberson@hushmail.com> wrote in message
> > <7MKPo.14929$Qi5.12397@newsfe01.iad>...
> >> On 20/12/10 9:27 AM, scaramanga wrote:
> >>
> >> > I'm encountering a problem with matlab using the GUIDE, I have created
> >> > two push buttons, when I push the first one, I get two subplots
> >> embedded
> >> > in a panel. So far, there is no problem, but when I push on the second
> >> > button which is an imagesc command (with no subplot command)
> >> normally it
> >> > should take all the figure embedded in the panel, but it is diplayed in
> >> > the same figure than before in other word as a subplot below the first
> >> > one of the last figure.
> >> > How can i display it on the whole figure and hence delete the old
> >> subplots?
> >>
> >> You will have to use clf(), or delete() the old axes, or use
> >> subplot(1,1,1)
> >
> > Unfortunately clf (as well as delete) clear all the figure i.e. my GUI
> > window and if I use subplot(1,1,1) for the second button and I push on
> > it first, then the figure I get is resized over all the GUI window.
>
> Yes, but those behaviours are not problems, as you specifically asked
> "How can i display it on the whole figure". Did you perhaps mean "whole
> panel" instead? I do not have an immediate solution for that and I need
> to do something else now, sorry.
Yes I meant all the panel, sorry ....
|
|
0
|
|
|
|
Reply
|
scaramanga
|
12/20/2010 4:25:28 PM
|
|
On 10-12-20 10:21 AM, Walter Roberson wrote:
> On 20/12/10 9:49 AM, scaramanga wrote:
>> Walter Roberson <roberson@hushmail.com> wrote in message
>> <7MKPo.14929$Qi5.12397@newsfe01.iad>...
>>> On 20/12/10 9:27 AM, scaramanga wrote:
>>>
>>> > I'm encountering a problem with matlab using the GUIDE, I have created
>>> > two push buttons, when I push the first one, I get two subplots
>>> embedded
>>> > in a panel. So far, there is no problem, but when I push on the second
>>> > button which is an imagesc command (with no subplot command)
>>> normally it
>>> > should take all the figure embedded in the panel, but it is diplayed in
>>> > the same figure than before in other word as a subplot below the first
>>> > one of the last figure.
>>> > How can i display it on the whole figure and hence delete the old
>>> subplots?
>>>
>>> You will have to use clf(), or delete() the old axes, or use
>>> subplot(1,1,1)
>>
>> Unfortunately clf (as well as delete) clear all the figure i.e. my GUI
>> window and if I use subplot(1,1,1) for the second button and I push on
>> it first, then the figure I get is resized over all the GUI window.
>
> Yes, but those behaviours are not problems, as you specifically asked "How can
> i display it on the whole figure". Did you perhaps mean "whole panel" instead?
> I do not have an immediate solution for that and I need to do something else
> now, sorry.
Okay, I'm back again.
subplot(1,1,1,'Parent', HandleOfPanel);
Note though that although subplot(1,1,1) is treated as a special case
according to the documentation, that subplot(1,1,1,'Parent', HandleOfPanel)
appears to do just what you would like to have happen.
|
|
0
|
|
|
|
Reply
|
Walter
|
12/20/2010 6:59:37 PM
|
|
|
5 Replies
381 Views
(page loaded in 0.061 seconds)
Similiar Articles: Conflict between subplot and imagesc within a GUI. - comp.soft-sys ...Hello to everyone , I'm encountering a problem with matlab using the GUIDE, I have created two push buttons, when I push the first one, I get two subplots embedded in ... Two Source Radiation Contour Issue - comp.soft-sys.matlab ...Conflict between subplot and imagesc within a GUI. - comp.soft-sys ..... everyone , I'm encountering a problem with matlab using the GUIDE, I have created two ... Conflict between subplot and imagesc within a GUI. - comp.soft-sys ...Hello to everyone , I'm encountering a problem with matlab using the GUIDE, I have created two push buttons, when I push the first one, I get two subplots embedded in ... subplot - Create axes in tiled positions - MathWorks - MATLAB and ...subplot -Create axes in tiled positions. Alternatives. To add subplots to a figure, click ... For information about creating subplots in a GUIDE-generated GUI, see Displaying ... 7/23/2012 4:40:21 PM
|