How to increase figure width in a Matlab live script?
I'm using a Matlab Live script in which I'd like to use some subfigures. As the Standard figure size only uses a small section of the screen widths, I tried to enlarge the figure as follows:
h = figure;
subplot(1,2,1);
subplot(1,2,2);
set(h, 'Position', [0 0 1000 500])
This works entirely fine, for 'normal' figure Windows, but appearently not for in-line figures in live scripts.
As to be seen from the screenshots below, in the live script, the figure's size only increases to a small amount (fig. 1 -> fig. 2) and even decreases after a certain width (fig. 3).
Any ideas on how I can further increase the used pagewidth in the live script, or hints on what I'm doing wrong are appreciated.
Thanks
fig. 1
fig. 2
fig. 3
matlab matlab-figure
add a comment |
I'm using a Matlab Live script in which I'd like to use some subfigures. As the Standard figure size only uses a small section of the screen widths, I tried to enlarge the figure as follows:
h = figure;
subplot(1,2,1);
subplot(1,2,2);
set(h, 'Position', [0 0 1000 500])
This works entirely fine, for 'normal' figure Windows, but appearently not for in-line figures in live scripts.
As to be seen from the screenshots below, in the live script, the figure's size only increases to a small amount (fig. 1 -> fig. 2) and even decreases after a certain width (fig. 3).
Any ideas on how I can further increase the used pagewidth in the live script, or hints on what I'm doing wrong are appreciated.
Thanks
fig. 1
fig. 2
fig. 3
matlab matlab-figure
1
What version of Matlab do you use? This works quite well to me:set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
1
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55
add a comment |
I'm using a Matlab Live script in which I'd like to use some subfigures. As the Standard figure size only uses a small section of the screen widths, I tried to enlarge the figure as follows:
h = figure;
subplot(1,2,1);
subplot(1,2,2);
set(h, 'Position', [0 0 1000 500])
This works entirely fine, for 'normal' figure Windows, but appearently not for in-line figures in live scripts.
As to be seen from the screenshots below, in the live script, the figure's size only increases to a small amount (fig. 1 -> fig. 2) and even decreases after a certain width (fig. 3).
Any ideas on how I can further increase the used pagewidth in the live script, or hints on what I'm doing wrong are appreciated.
Thanks
fig. 1
fig. 2
fig. 3
matlab matlab-figure
I'm using a Matlab Live script in which I'd like to use some subfigures. As the Standard figure size only uses a small section of the screen widths, I tried to enlarge the figure as follows:
h = figure;
subplot(1,2,1);
subplot(1,2,2);
set(h, 'Position', [0 0 1000 500])
This works entirely fine, for 'normal' figure Windows, but appearently not for in-line figures in live scripts.
As to be seen from the screenshots below, in the live script, the figure's size only increases to a small amount (fig. 1 -> fig. 2) and even decreases after a certain width (fig. 3).
Any ideas on how I can further increase the used pagewidth in the live script, or hints on what I'm doing wrong are appreciated.
Thanks
fig. 1
fig. 2
fig. 3
matlab matlab-figure
matlab matlab-figure
edited Nov 26 '18 at 12:59
Paolo Pantani
asked Nov 26 '18 at 11:30
Paolo PantaniPaolo Pantani
697
697
1
What version of Matlab do you use? This works quite well to me:set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
1
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55
add a comment |
1
What version of Matlab do you use? This works quite well to me:set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
1
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55
1
1
What version of Matlab do you use? This works quite well to me:
set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
What version of Matlab do you use? This works quite well to me:
set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
1
1
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55
add a comment |
1 Answer
1
active
oldest
votes
You may try to use use axis property. Please refer in here:
https://www.mathworks.com/help/matlab/ref/axis.html
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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%2f53480178%2fhow-to-increase-figure-width-in-a-matlab-live-script%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You may try to use use axis property. Please refer in here:
https://www.mathworks.com/help/matlab/ref/axis.html
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
add a comment |
You may try to use use axis property. Please refer in here:
https://www.mathworks.com/help/matlab/ref/axis.html
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
add a comment |
You may try to use use axis property. Please refer in here:
https://www.mathworks.com/help/matlab/ref/axis.html
You may try to use use axis property. Please refer in here:
https://www.mathworks.com/help/matlab/ref/axis.html
answered Nov 26 '18 at 12:29
A. SyamA. Syam
118119
118119
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
add a comment |
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
I can't really find any axis properties that would help me with this concern of extending the whole figure's size and not only adjusting limits or adjust to data width etc.
– Paolo Pantani
Nov 26 '18 at 12:53
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.
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%2f53480178%2fhow-to-increase-figure-width-in-a-matlab-live-script%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
1
What version of Matlab do you use? This works quite well to me:
set(h, 'Position', [0 0 1000 500])
– EBH
Jan 13 at 17:08
1
I used 2017b when setting up the example above. However I've retried it now on a different system with 2018a. As you described it does work exactly as intended there. So I suppose that it's a solved bug then.
– Paolo Pantani
Feb 28 at 12:55