Set the width of a subplot & leave all else unchanged
33 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have code that generates the following figure with subplots:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/964230/image.png)
I'd like to reduce the width of each subplot and leave more room to the subplotTitles at the left. Resizing the entire figure window doesn't work, as everything is resized proportionately. If I use the EditPlot tool, I can manually reduce the width of the subplot using the mouse:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/964235/image.png)
and then manually move the subplotTitle to the left, bringing me to my desired figure layout:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/964240/image.png)
However, I'd like to do this with code. I know from here that the [x,y,width,height] of the entire axes handle can be specified; however, I don't want to override the automatically-computed y position and height - I only want to reduce the width.
Can I somehow only scale the width param of each subplot, while leaving all others unchanged?
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Subplots 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!