Matlab Cropping Plots to remove whitespace
Mostra commenti meno recenti
I want to adjust the amount of whitespace that is shown when plots are generated. I found this command to do just that:
set(gca,'LooseInset',get(gca,'TightInset'))
But this doesn't work that well when I add axis labels. When I have a plot without axis labels it's fine, it looks like this:

But when I add labels it does this:

You can't see it all that well but there is a lot of white space left of the yaxis label. I want to crop it down to the bare minimum, how do I do it?
Risposta accettata
Più risposte (1)
Marc Jakobi
il 15 Set 2016
0 voti
I just finished working on a function that attemts to automatically solve this problem (without messing up colorbars, labels, etc.)
1 Commento
Dr. Erol Kalkan, P.E.
il 12 Ott 2018
This file is not available in fileexchange.
Categorie
Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!