フィルターのクリア

how to plot points in a GUI

3 ビュー (過去 30 日間)
Amanda
Amanda 2022 年 11 月 10 日
コメント済み: Rik 2022 年 11 月 11 日
I have a Gui that I am trying to plot random points in but everytime I plot something it erases the button I have made in the GUi and the point doesnt show up on the graph portion. how do i fix this issue?
  7 件のコメント
Voss
Voss 2022 年 11 月 11 日
Also, the fact that your axes still has default x- and y-limits ([0 1]) makes me think your script is plotting into another axes somehow and/or the buttons are being created in another figure somehow.
Rik
Rik 2022 年 11 月 11 日
Why did you post your code as an image? Now anyone who wants to run your code will have to type it. Please replace the image with your code.
Also, when using GUIs, you should always use explicit handles when using functions like plot. That way you ensure that plots will appear where you expect them.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by