Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can you use a single context menu for multiple objects?

2 ビュー (過去 30 日間)
Niko
Niko 2015 年 8 月 21 日
編集済み: Niko 2015 年 8 月 21 日
Hi all,
Say I have ten plots in a single figure, and now I wish to add some context menus to them so that when I right-click on one of the curves, I can choose from several colors and set that plot to the chosen color. Can I do this with only one context menu object (instead of ten)? The problem I'm having now is that it seems the UIcontextmenu callback doesn't pass as an argument the object that was right-clicked on, so there's no way to tell which curve needs to be colored...
Thanks!
Niko
  2 件のコメント
Niko
Niko 2015 年 8 月 21 日
編集済み: Niko 2015 年 8 月 21 日
OK I'm sorry for the duplicate but could you please answer that question? Thanks a lot!

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by