How to Increase the Size of the Graphics Window
2 次查看(过去 30 天)
显示 更早的评论
Hi everybody! The code below gives me exactly what I need.However, I am unable to make the graphics window larger than the default size; who could help please.
% Graph of the Chuzymatics Result of , 2008-2014
clf
%Accept the time vector
year = 2008:2014
%Accept grade A inputs
A_score = input('Enter A grades, a 1 x n vector:');
%Accept grade B inputs
B_score= input('Enter B grades ,1 x n vector:');
%Accept grade C inputs
C_score= input('Enter C grades, 1 x n vector:');
%Generate the multiplots
plot(year, A_score, '-sk', year, B_score, '-og', year, C_score, '-*r','linewidth', 2)
set(gca, 'LineWidth', 2)
legend('A-Scores', 'B-Scores', 'C-Scores')
xlabel('Examination Dates')
ylabel('Total Number of Grades Obtained')
title('Graphical Display of Chuzymatics Grades:')
采纳的回答
Image Analyst
2014-9-11
Try this:
% Enlarge figure to full screen.
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0 0 1 1]);
2 个评论
Image Analyst
2014-9-11
You can also call this function to maximize the figure:
% Function to maximize the window via undocumented Java call.
% Reference: http://undocumentedmatlab.com/blog/minimize-maximize-figure-window
function MaximizeFigureWindow()
try
FigurejFrame = get(handle(gcf),'JavaFrame');
FigurejFrame.setMaximized(true);
catch ME
errorMessage = sprintf('Error in function %s() at line %d.\n\nError Message:\n%s', ...
ME.stack(1).name, ME.stack(1).line, ME.message);
fprintf(1, '%s\n', errorMessage);
WarnUser(errorMessage);
end
return; % from MaximizeFigureWindow()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!