How to transfer legend from GUI axes to a newly created figure?

2 ビュー (過去 30 日間)
Alon Rozen
Alon Rozen 2017 年 1 月 23 日
Hi all,
I have an axes on my GUI that has a 'button_Down' function. When I double click on the graph on that axes the 'button_Down' function creates a new figure and copy the graph to that figure. Unfortunately, the legend are not copied.
The relevant lines in my 'button_Down' function are:
New_Fig = figure;
set(hObject,'Units','normalized'); % hObject is the axes that reacts to the double click
copyobj(hObject,New_Fig);
How can I transfer the legends too?
Thansk,
Alon

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by