Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How can I plot many Figure to one figure?
Replies: 2   Last Post: Mar 28, 2013 10:18 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 17,945
Registered: 12/7/04
Re: How can I plot many Figure to one figure?
Posted: Mar 28, 2013 10:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"chairat Kraichan" <swordmannong_surin@hotmail.com> wrote in message
> if I have many figure with this command
> for 1:x
> figure(x);
> end
> so my figure will run out. If I want to plot figure(1) to figure (x) with
> unique figure as figure(x+1).
> What is the command of my question?

First, I would question whether you need to have all x figures open
simultaneously. If you don't, create the figure BEFORE the FOR loop and use
CLF to reset the figure back to its clean state at the end of each


Second, you're using the word "figure" to represent two different things.
Don't confuse "figure" with "axes" -- take a look here for a picture that
illustrates the difference.


You cannot have a figure contained inside another figure.
You cannot have an axes contained inside another axes.
You cannot have a figure contained inside an axes.
You CAN have one _or more_ axes contained inside one figure.

If that last scenario describes what you're trying to do, look at the
SUBPLOT function.

Steve Lord
To contact Technical Support use the Contact Us link on

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.