cleanfigure.m file from matlab2tikz can take care of this issue.
xlim command for figures
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ali Ozdagli
le 8 Nov 2013
Réponse apportée : Ali Ozdagli
le 13 Nov 2013
xlim command changes the axis limit of the figure.
How can i also limit data that is contained by the figure?
Appearently, even though xlim is applied data is still there.
0 commentaires
Réponse acceptée
Plus de réponses (1)
Wayne King
le 8 Nov 2013
Modifié(e) : Wayne King
le 8 Nov 2013
If when you say limit data, you mean restrict the range of data values, then use ylim
x = randn(100,1);
plot(x);
set(gca,'xlim',[1 25],'ylim',[-1 1])
Voir également
Catégories
En savoir plus sur Logical 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!