Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Can you use a single context menu for multiple objects?

조회 수: 1 (최근 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