Figure showing up tiny
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 21 Jun. 2018
I do not recommend "hold on" before you have drawn anything; I recommend waiting until after the first plot()
Walter Roberson
am 22 Jun. 2018
Please show the value of
get(0, 'DefaultAxesPosition')
get(0, 'DefaultAxesUnits')
Ben Morrow
am 20 Aug. 2018
Akzeptierte Antwort
Weitere Antworten (2)
Swarnava Pramanik
am 22 Jun. 2018
0 Stimmen
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 Kommentar
Ben Morrow
am 20 Aug. 2018
Kendall Stead
am 23 Sep. 2021
0 Stimmen
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 Kommentar
Kendall Stead
am 23 Sep. 2021
[Restarting MATLAB and my laptop did not solve this by the way!]
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!