Figure showing up tiny

조회 수: 66 (최근 30일)
Ben Morrow
Ben Morrow 2018년 6월 21일
댓글: Kendall Stead 2021년 9월 23일
For some reason my figures appear 1/4 the size in the top left of my figure window. Is this a bug? how can I make it show the full size in the window? This is how i'm generating the plot:
figh = figure();
hold on;
plot(xOriginalvalues, yOriginalvalues, 'ko','MarkerSize', 8);
plot(xClassicvalues, yClassicvalues, 'kx', 'MarkerSize', 8);
plot(xNGvalues, yNGvalues, 'k+', 'MarkerSize', 8);
legend({'Originals', 'Classics', 'Next Gen'}, 'FontSize', 11);
grid on;
title('Holding volume (m^3) vs Orders')
xlabel('Holding Volume');
ylabel('Airplane Orders');
%pos = get(figh, 'position'); %This is the fix that I tried, exactly the same as just dragging the corner
%set(figh, 'position', [pos(1:2)/4 pos(3:4)*2]);
hold off;
How can I fix this?
  댓글 수: 3
Walter Roberson
Walter Roberson 2018년 6월 22일
Please show the value of
get(0, 'DefaultAxesPosition')
get(0, 'DefaultAxesUnits')
Ben Morrow
Ben Morrow 2018년 8월 20일
>> get(0, 'DefaultAxesPosition')
ans =
0.1300 0.1100 0.7750 0.8150
>> get(0, 'DefaultAxesUnits')
ans =
'normalized'
-----------------------------------
^ ^ this is the return after it fixed itself

댓글을 달려면 로그인하십시오.

채택된 답변

Ben Morrow
Ben Morrow 2018년 8월 20일
Restarting the Computer fixed it.
I am not able to reproduce this error anymore after restarting the mac. I had two crash files for when matlab died twice. I found out that it occurred after I tried to plot it to my computer from an ipad with the
>> connector $
command. I think it came about when I plotted it on the OS X matlab after already plotting it on the iPad.

추가 답변 (2개)

Swarnava Pramanik
Swarnava Pramanik 2018년 6월 22일
Hi Ben,
I understand your figure is appearing small when you open the “Figure Properties” for a figure on MAC. Could you let me know which version of MATLAB you are using? I tried reproducing the issue from R2014a, R2017b and from R2018a but not able to reproduce it. I’ve attached two figures one from R2014a and another from R2017b on Windows.
Thanks,
Swarnava Pramanik
  댓글 수: 1
Ben Morrow
Ben Morrow 2018년 8월 20일
R2017a on MAC, it still appeared small without any of the toolbars open (just the basic Figure Toolbar)

댓글을 달려면 로그인하십시오.


Kendall Stead
Kendall Stead 2021년 9월 23일
This has just happened to me as well, I was able to fix by going into full screen [View - Full Screen] and collapsing the full screen window back into a tab [ctrl - shift - d].
Not sure if this will work for others in future, but fingers crossed.
Kendall :-)
  댓글 수: 1
Kendall Stead
Kendall Stead 2021년 9월 23일
[Restarting MATLAB and my laptop did not solve this by the way!]

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by