How do I hold the current plot but not the axis properties?
2 ビュー (過去 30 日間)
古いコメントを表示
I'm creating a GUI that can plot multiple functions on the same plot, depending on which data-set I choose. If I use hold on, the axis on the plot doesn't change and the next data-set might not be completely displayed. I want to keep the current data on the plot but have another data-set plotted and have the axis scale so that both sets can be seen.
0 件のコメント
回答 (1 件)
Matthew
2015 年 7 月 9 日
Check to make sure that your axes XLimMode and YLimMode is set to auto.
figure;plot(1:10)
hold on;
plot(1:10:100)
plot(1:.1:10)
seems to work fine, so your issue may not really be with the hold command.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!