Change de default position of plot
181 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Luis Isaac
le 19 Mai 2020
Modifié(e) : Marc Compere
le 30 Avr 2024
Dear;
This a silly question
Sometimes when I debug a program I need to plot some of the variables in different figures
The figure apear just in the middle of the script editor, so to continued debugging I have to move the plot
Is there any way to chage the default position where the plot appears?
Many thanks,
1 commentaire
Geoff Hayes
le 19 Mai 2020
Luis - I think that in order to set the position of where the plot appears, you would need to create the figure first and set its position before calling plot
figure('Position',[0 0 100 100]); plot(1:42,42:-1:1)
Réponse acceptée
Walter Roberson
le 19 Mai 2020
set(groot, 'DefaultFigurePosition', [x, y, width, height])
1 commentaire
Marc Compere
le 30 Avr 2024
Modifié(e) : Marc Compere
le 30 Avr 2024
to get DefaultFigurePosition use:
left_bottom_width_height = get(groot, 'DefaultFigurePosition')
to set DefaultFigurePosition:
set(groot, 'DefaultFigurePosition', [left, bottom, width, height])
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Line Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!