Second plot accidently with legends from first plot
1 回表示 (過去 30 日間)
古いコメントを表示
Hello, i independantly want to plot the following Data.
But as you can see i have some leftover data from the first plot i made further at the beginning of my script. What is the command to set the plot presets to zero?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1024675/image.png)
3 件のコメント
Rik
2022 年 6 月 7 日
I recovered the removed content from the Google cache (something which anyone can do). Editing away your question is very rude. Someone spent time reading your question, understanding your issue, figuring out the solution, and writing an answer. Now you repay that kindness by ensuring that the next person with a similar question can't benefit from this answer.
回答 (1 件)
Walter Roberson
2022 年 5 月 22 日
cla can be used.
But a lot of a time, you just
hold off
and let it reset itself.
When I look at your plot, I wonder if you used yyaxis? If so then see the tips at https://www.mathworks.com/help/matlab/ref/yyaxis.html#buofqx8-4
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Legend についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!