function lineplot_buttons %LINEPLOT_BUTTONS Inizialize the uicontrols for the line plot % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % gvar='global Handlefig B_frame deg_ed deg_txt LineSpace;'; eval(gvar); % Position variables--------------------------------------------------- pos=get(B_frame, 'Position'); uiwidth=0.10; uithick=0.035; middle=pos(1)+(pos(3)-uiwidth)/2; %--------------------------------------------------------------------- whendone=''; deg_ed_cbk=[gvar 'editstr2value(deg_ed, 1, 5);LineSpace=get(deg_ed, ''value'');showimage;']; % Positions of buttons ----------------------------------------------------- deg_txt_pos=[pos(1)+(pos(3)-0.18)/2 , pos(2)+0.5, 0.18, uithick]; deg_ed_pos=[middle, pos(2)+0.5-uithick, uiwidth, uithick]; %--------------------------------------------------------------------------- bg = [0.55 0.55 0.55]; initbuttons('Line/Mesh Plot', 'Done', whendone); deg_txt=uicontrol(Handlefig, 'Style', 'text',... 'String', 'Line Spacing',... 'Units', 'normalized',... 'Position', deg_txt_pos,... 'BackgroundColor', bg,... 'Visible', 'on',... 'HorizontalAlignment', 'center'); deg_ed = uicontrol(Handlefig, 'Style', 'edit',... 'String', num2str(LineSpace),... 'Units', 'normalized',... 'Position', deg_ed_pos,... 'Visible', 'on',... 'Value', LineSpace,... 'HorizontalAlignment', 'center',... 'CallBack', deg_ed_cbk); return