Effacer les filtres
Effacer les filtres

Changing XDir permanent to reverse

29 vues (au cours des 30 derniers jours)
Adrian
Adrian le 24 Sep 2013
Hi again,
I got a new problem and missing a solution. I did a plotting in an axes after setting it XDir to reverse.
set(gca, 'XDir', 'reverse');
plot(vecA, vecB);
This is working well. Than I used
hold on;
and plotted something else
plot(vecC, vecD);
The result is that the axis changed back. :(

Réponses (2)

Jos (10584)
Jos (10584) le 24 Sep 2013
Why not set the direction AFTER all the plot commands?

Sean de Wolski
Sean de Wolski le 24 Sep 2013
plot is a high-level functhat changes a bunch of properties automatically. If you don't want to change the other properties, call line directly.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by