How to plot a point on axes above current picture
조회 수: 4 (최근 30일)
이전 댓글 표시
When I use plot(x,y) function it erases the current data on axes and make blank white axes only with that point.
I would like to plot point above current data so both is visible.
Thanks.
댓글 수: 0
채택된 답변
Evan
2012년 11월 8일
편집: Evan
2012년 11월 8일
hold on
The above command allows you to plot data to your current axes without erasing previously plotted data.
If you have multiple axes, use the following:
hold(my_axes,'on') %Where my_axes is the handle to your axes
Finally, "hold off" and "hold(my_axes,'off')" return the axes to the default setting, where previously plotted data is erased when you plot new data.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!