AddNewGraph_jd

PURPOSE ^

SYNOPSIS ^

function [handles,SelectedGraphs] = AddNewGraph_jd(hObject, eventdata, handles, axes, listbox, visible, selectedgraphs)

DESCRIPTION ^

 
 This function adds a new graph to axes and stores it in handles

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [handles,SelectedGraphs] = AddNewGraph_jd(hObject, eventdata, handles, axes, listbox, visible, selectedgraphs)
0002 %
0003 % This function adds a new graph to axes and stores it in handles
0004 %
0005 graph = AddGraph_jd(axes, [], handles);
0006 %
0007 SelectedGraphs = selectedgraphs;
0008 %
0009 if ~isempty(graph)
0010     %
0011     % add graph to the list of graphs
0012     %
0013     handles.graphs{length(handles.graphs) + 1} = graph;
0014     %
0015     UpdateListOfGraphs_jd(listbox, [], handles, axes);
0016     %
0017     NewInListIndex = length(get(listbox,'String'));
0018     %
0019     set(listbox,'Value',NewInListIndex)
0020     %
0021     SelectedGraphs = length(handles.graphs);
0022     %
0023     UpdateVisible_jd(visible, [], handles, axes, SelectedGraphs);
0024     %
0025 end

Community support and wiki are available on Redmine. Last update: 18-Apr-2019.