Changing XDir permanent to reverse
25 次查看(过去 30 天)
显示 更早的评论
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. :(
0 个评论
回答(2 个)
Sean de Wolski
2013-9-24
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!