Hi, I have a function that generates multiple plots (15 or so). I am able to display all of them (their titles) in a listbox. What I would like to do is to display the plot upon clicking on a proper title in a listbox.
\\This is part of a previous callbackset(handles.figures_list_tag,'string',fieldnames(handles.allfigures));handles.fieldnames=fieldnames(handles.allfigures);guidata(hObject,handles)% --- Executes on selection change in figures_list_tag.
function figures_list_tag_Callback(hObject, eventdata, handles)selected_figure_index=get(hObject,'Value');figure_array=cellstr(get(hObject,'String'));selected_figure=getfield(handles.allfigures,handles.fieldnames{selected_figure_index});handles.figure_tag;cla;hold onset(handles.figure_tag,'CurrentAxes',findobj(handles.allfigures,selected_figure))guidata(hObject,handles)
Anyhow, this doesn't work, but just to give you an idea what I have so far. Any advice how to do this? Thanks in advance!
Best Answer