Dear Community,
I want to change the Linestyle of a Matlab Figure in a Gui. I have a popupmenu with a switch case structure where I can set the property. However, no change occurs whatsoever. I tried whats in commentary with refresdata and so forth, but no change. Do I need to replot all the data with plot (yet I dont know at all times which data I have. Or is there another way for it to update the figure?
Thanks a lot, below the code Ravi
switch get(hObject,'Value') case 1 set(handles.axes_eis,'LineStyleOrder', '-'); guidata(hObject, handles); % refreshdata(handles.axes_eis)
% refreshdata(handles.axes_eis,'caller')
% draw now
case 2 set(handles.axes_eis,'LineStyleOrder', '.-'); guidata(hObject, handles);end guidata(hObject, handles);
Best Answer