Question of subplot in matlab irregularity
up vote
0
down vote
favorite
How can I draw the plot as follow in matlab?
using subpolt?

matlab
add a comment |
up vote
0
down vote
favorite
How can I draw the plot as follow in matlab?
using subpolt?

matlab
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
How can I draw the plot as follow in matlab?
using subpolt?

matlab
How can I draw the plot as follow in matlab?
using subpolt?

matlab
matlab
asked Nov 8 at 2:24
Bllue
212
212
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37
add a comment |
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
You can achieve this using subplot with the 'Position' argument.
subplot('Position',[x,y,width,height])
In your example
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
will lead to something like

I guess you will have to adjust the actual position values a bit depending on your plots and how you handle axis labels and everything...
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
You can achieve this using subplot with the 'Position' argument.
subplot('Position',[x,y,width,height])
In your example
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
will lead to something like

I guess you will have to adjust the actual position values a bit depending on your plots and how you handle axis labels and everything...
add a comment |
up vote
3
down vote
You can achieve this using subplot with the 'Position' argument.
subplot('Position',[x,y,width,height])
In your example
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
will lead to something like

I guess you will have to adjust the actual position values a bit depending on your plots and how you handle axis labels and everything...
add a comment |
up vote
3
down vote
up vote
3
down vote
You can achieve this using subplot with the 'Position' argument.
subplot('Position',[x,y,width,height])
In your example
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
will lead to something like

I guess you will have to adjust the actual position values a bit depending on your plots and how you handle axis labels and everything...
You can achieve this using subplot with the 'Position' argument.
subplot('Position',[x,y,width,height])
In your example
% third row
subplot('Position',[0,0,.25,.33]);
sphere
subplot('Position',[.25,0,.25,.33]);
sphere
subplot('Position',[.5,0,.25,.33]);
sphere
subplot('Position',[.75,0,.25,.33]);
sphere
% second row
subplot('Position',[.125,.33,.25,.33]);
sphere
subplot('Position',[.375,.33,.25,.33]);
sphere
subplot('Position',[.625,.33,.25,.33]);
sphere
% first row
subplot('Position',[.25,.66,.25,.33]);
sphere
subplot('Position',[.5,.66,.25,.33]);
sphere
will lead to something like

I guess you will have to adjust the actual position values a bit depending on your plots and how you handle axis labels and everything...
answered Nov 8 at 8:34
user7431005
893214
893214
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53200681%2fquestion-of-subplot-in-matlab-irregularity%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What exactly are you plotting here?
– gnovice
Nov 8 at 3:37