フィルターのクリア

How to plot a point on axes above current picture

4 ビュー (過去 30 日間)
Tomislav
Tomislav 2012 年 11 月 8 日
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.

採用された回答

Evan
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.
  1 件のコメント
Tomislav
Tomislav 2012 年 11 月 8 日
That is it!
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by