Created
December 22, 2022 06:05
-
-
Save mightbxg/253ebd50af1ac6324ea5783ec3c7148c to your computer and use it in GitHub Desktop.
modify figures in matlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% get axes handles | |
ax_hdls = findobj(groot, 'type', 'axes'); | |
ax_1 = ax_hdls(1); | |
ax_2 = ax_hdls(2); | |
% set Y limits | |
set([ax_1, ax_2], 'YLim', pitch_range); | |
% plot | |
plot(ax_1, x, y); | |
% set window property | |
set(findobj(groot, 'type', 'figure'), 'WindowState', 'maximized'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment