function anovaplotmenu

%   anovaplotmenu

%   This software is protected by german copyright and international treaties.             
%   Copyright 2004 Markus Junghöfer & Peter Peyk. All Rights Reserved.                     
%                                                                                          
%   THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE        
%   NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO,    
%   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE    
%   OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
%   TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT,       
%   INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE      
%   OR DOCUMENTATION.                                                                      


uigettextfigure = findobj('tag','uigettextfigure');
set(uigettextfigure,'units','normalized','position',[0.1 0.1 0.6 0.8],'color',[1 1 1]);
editfenster = findobj('tag','editfenster');
set(editfenster,'units','normalized','position',[0.03 0.8 0.93 0.18]);
okbutton = findobj('tag','okbutton');
set(okbutton,'units','normalized','position',[0.85 0.76 0.11 0.03]);

uigettextframe = findobj('tag','uigettextframe');
set(uigettextframe,'visible','on','units','normalized','position',[0 0.75 1 0.3]);

instringtext = findobj('tag','instringtext');
set(instringtext,'String','no effect selected:','units','normalized','position',[0.1 0.83 0.7 0.05],'fontsize',20,'backgroundcolor',[1 1 1],'visible','off');

otherstringtext = findobj('tag','otherstringtext');
set(otherstringtext,'visible','off');
figure(uigettextfigure);
anovaplotaxes = axes('units','normalized','position',[0.1 0.1 0.8 0.6],'tag','anovaaxes');


if isempty(findobj('Name','ANOVA plotting:'))
        
	%figure
	%---------------
	schaubild=figure('units','normalized','position',[0.74219     0.11849     0.20605     0.79688],'units','normalized',...
	'color',[0.4        0.55         0.7],'Name','ANOVA plotting:','Numbertitle','off','Resize','on','Menubar','none','units','normalized');
	
	
	%-----------------
	%frames
	%-----------------
			
			%frame3
			%----------------
			frame3= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.33876     0.94249      0.2101],...
			'backgroundcolor',[0.8         0.8         0.8],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame3',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame1
			%----------------
			frame1= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.19055     0.94249     0.12378],...
			'backgroundcolor',[0.8         0.8         0.8],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame1',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame10
			%----------------
			frame10= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.56678     0.94249     0.14332],...
			'backgroundcolor',[0.8         0.8         0.8],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame10',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			
			
			%frame12
			%----------------
			frame12= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.028396     0.72473     0.94337     0.17865],...
			'backgroundcolor',[0.8         0.8         0.8],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame12',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame11
			%----------------
			frame11= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.66574     0.94249    0.045506],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame11',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame6
			%----------------
			frame6= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.27687     0.94249    0.043974],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame6',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame7
			%----------------
			frame7= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.13192     0.94249    0.043974],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame7',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			
			%frame8
			%----------------
			frame8= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.028396    0.077529     0.94337    0.045506],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame8',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame13
			%----------------
			frame13= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.028396     0.85787     0.94337    0.045506],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame13',...
			'String',{''},...
			'HorizontalAlignment','center');
			
			%frame5
			%----------------
			frame5= uicontrol(schaubild,'units','normalized','style','frame',...
			'position',[0.025559     0.50489     0.94249    0.043974],...
			'backgroundcolor',[0.7         0.7         0.7],...
			'foregroundcolor',[0  0  0],...
			'Value',0,...
			'tag','frame5',...
			'String',{''},...
			'HorizontalAlignment','center');
	
	
	
        
	%-------------------
	%axes section
	%---------------------
	
		%text15
		%----------------
		text15= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.041534     0.86482     0.52396    0.032573],...
		'backgroundcolor',[0.7         0.7         0.7],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','text15',...
		'String',{'Axes:',''},...
		'HorizontalAlignment','left');
	
	
	
	
	
	%-----------------------
	%general section
	%------------------------
		
		%text12
		%----------------
		text12= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.4345     0.62866     0.16613    0.022801],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','text12',...
		'String','Line:',...
		'HorizontalAlignment','left');
	
		%text11
		%----------------
		text11= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.17062     0.62418     0.22275    0.027778],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text11',...
		'String','Color:',...
		'HorizontalAlignment','left');
	
		%text14
		%----------------
		text14= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.042654      0.6683     0.88626     0.03268],...
		'backgroundcolor',[0.7         0.7         0.7],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','text14',...
		'String',{'General Formatting:',''},...
		'HorizontalAlignment','left');
	
		%text13
		%----------------
		text13= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.79233     0.62704     0.16613    0.022801],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','text13',...
		'String','Msize',...
		'HorizontalAlignment','left');
	
		%generalmarkerpopup
		%----------------
		generalmarkerpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.59242     0.58987      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
        'Callback','anovadraw;',...
		'Value',1,...
		'tag','generalmarkerpopup',...
		'String',{'Bar','Bar3','+','o','*','.','x','square','diamond','v','^','>','<','pentagram','hexagram'},...
		'HorizontalAlignment','center');
	
		%generalcoloredit
		%----------------
		generalcoloredit= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.099526     0.58987     0.30806     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Callback','setgeneralcolor',...
        'Callback','anovadraw;',...
		'Value',4,...
		'tag','generalcoloredit',...
		'String',{'blue','red','green','black','yellow','purple','turquoise','custom'},...
		'HorizontalAlignment','center');
	
		%generallinewidthpopup
		%----------------
		generallinewidthpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.4218     0.58987      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
        'Callback','anovadraw;',...
		'Value',1,...
		'tag','generallinewidthpopup',...
		'String',{'1','2','3','4','5','6','7','8','9','10'},...
		'HorizontalAlignment','center');
	
		%generalmarkersizepopup
		%----------------
		generalmarkersizepopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.77251     0.58987      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
        'Callback','anovadraw;',...
		'Value',5,...
		'tag','generalmarkersizepopup',...
		'String',{'1','2','3','4','5','6','7','8','9','10','11','12','20','40','80','100','150','200'},...
		'HorizontalAlignment','center');
	
	%---------------------
	%gruppen section
	%--------------------
		
		%gruppenradio
		%----------------
		gruppenradio= uicontrol(schaubild,'units','normalized','style','radiobutton',...
		'position',[0.042654     0.50817     0.86256    0.031046],...
		'backgroundcolor',[0.7         0.7         0.7],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;anovadraw;',...
		'Value',1,...
		'tag','gruppenradio',...
		'String','Gruppierungsvariable:',...
		'HorizontalAlignment','center');
	
	
		%text10
		%----------------
		text10= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.59744     0.62866     0.13419    0.021173],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text10',...
		'String','Symb.:',...
		'HorizontalAlignment','left');
		
		%text9
		%----------------
		text9= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.78594      0.2443     0.16613    0.022801],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text9',...
		'String','Msize',...
		'HorizontalAlignment','left');
		
		%text7
		%----------------
		text7= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.77636     0.39902     0.16613    0.019544],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text7',...
		'String','Msize',...
		'HorizontalAlignment','left');
		
		%gruppenmarkersizepopup
		%----------------
		gruppenmarkersizepopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.77636     0.36482     0.15974    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','gruppenmarkersizepopup',...
		'String',{'1','2','3','4','5','6','7','8','9','10','11','12'},...
		'HorizontalAlignment','center');
		
		%text5
		%----------------
		text5= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.43131     0.24593     0.16613    0.022801],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text5',...
		'String','Line:',...
		'HorizontalAlignment','left');
		
		%text4
		%----------------
		text4= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.18483     0.24673      0.1564    0.021242],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text4',...
		'String','Color:',...
		'HorizontalAlignment','left');
	
		%nullgruppenradio
		%----------------
		nullgruppenradio= uicontrol(schaubild,'units','normalized','style','radiobutton',...
		'position',[0.061611     0.35621     0.47867    0.022876],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','nullgruppenradio',...
		'String',{'0-Gruppe ausblenden',''},...
		'HorizontalAlignment','center');
	
		%symbolschemapopup
		%----------------
		symbolschemapopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.58786     0.36482     0.15974    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Callback','setmarkermap',...
		'Value',1,...
		'tag','symbolschemapopup',...
		'String',{'standard','custom'},...
		'HorizontalAlignment','center');
	
		%text1
		%----------------
		text1= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.58466     0.39902     0.16613    0.019544],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','text1',...
		'String','symb.:',...
		'HorizontalAlignment','left');
	
		%gruppensymboleradio
		%----------------
		gruppensymboleradio= uicontrol(schaubild,'units','normalized','style','radiobutton',...
		'position',[0.063898     0.39088     0.48243     0.02443],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','gruppensymboleradio',...
		'String',{'Gruppensymbole',''},...
		'HorizontalAlignment','center');
	
		%gruppenfarbenradio
		%----------------
		gruppenfarbenradio= uicontrol(schaubild,'units','normalized','style','radiobutton',...
		'position',[0.067093     0.42997     0.38339     0.02443],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','gruppenfarbenradio',...
		'String','Gruppenfarben',...
		'HorizontalAlignment','center');
	
		%gruppenmittelwerteradio
		%----------------
		gruppenmittelwerteradio= uicontrol(schaubild,'units','normalized','style','radiobutton',...
		'position',[0.042654     0.28268     0.87678    0.029412],...
		'backgroundcolor',[0.7         0.7         0.7],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','gruppenmittelwerteradio',...
		'String','Gruppenmittelwerte anzeigen',...
		'HorizontalAlignment','center');
	
		%colormappopup
		%----------------
		colormappopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.69968      0.4316     0.24281     0.02443],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','colormappopup',...
		'String',{'hsv','hot','gray','bone','copper','pink','flag','lines','colorcube','jet','prism','cool','autumn','spring','winter','summer'},...
		'HorizontalAlignment','center');
		
		%formatlabel
		%----------------
		formatlabel= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.5016     0.42834     0.19169    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','enablegruppenpopup;',...
		'Value',0,...
		'tag','formatlabel',...
		'String','colormap',...
		'HorizontalAlignment','left');
	
	
		%ttestbutton
		%----------------
		ttestbutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.047923     0.46906     0.20767    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','ttestforgroups',...
		'Value',0,...
		'tag','ttestbutton',...
		'String','t-test',...
		'HorizontalAlignment','center');
		
		%gruppenpopup
		%----------------
		gruppenpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.37061     0.46906     0.57188    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','gruppenpopup',...
		'String','Gruppe',...
		'HorizontalAlignment','center');
	%---------------------
	%mittelwertsection
	%-----------------------
	
		%mittelwertfarbedit
		%----------------
		mittelwertfarbedit= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.10427     0.20588     0.30806     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Callback','setmeancolor',...
		'Value',4,...
		'tag','mittelwertfarbedit',...
		'String',{'blue','red','green','black','yellow','purple','turquoise','custom','group'},...
		'HorizontalAlignment','center');
		
		%mittelwertlinewidthpopup
		%----------------
		mittelwertlinewidthpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.4218     0.20588      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','mittelwertlinewidthpopup',...
		'String',{'1','2','3','4','5','6','7','8','9','10'},...
		'HorizontalAlignment','center');
	
        %mittelwertmarkersizepopup
		%----------------
		mittelwertmarkersizepopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.77251     0.20588      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',9,...
		'tag','mittelwertmarkersizepopup',...
		'String',{'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24'},...
		'HorizontalAlignment','center');
	
		%mittelwertsymbolpopup
		%----------------
		mittelwertsymbolpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.59716     0.20588      0.1564     0.03268],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',4,...
		'tag','mittelwertsymbolpopup',...
		'String',{'group','Bar','+','o','*','.','x','square','diamond','v','^','>','<','pentagram','hexagram'},...
		'HorizontalAlignment','center');
		
		%formatlabel
		%----------------
		formatlabel= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.60703     0.24593    0.095847    0.022801],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','formatlabel',...
		'String','Symb.:',...
		'HorizontalAlignment','left');
	
	
	%-------------------------
	%choose dataset section
	%------------------------
	
		%pushbutton2
		%----------------
		pushbutton2= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.50479     0.95928     0.46326    0.029316],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','selfilewaehlen',...
		'Value',1,...
		'tag','pushbutton2',...
		'String',{'choose';'data'},...
		'HorizontalAlignment','center');
		
		%selfilemonitor
		%----------------
		selfilemonitor= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.025559      0.9202      0.9393    0.030945],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','datasetmonitor',...
		'HorizontalAlignment','center');
		
		%text2
		%----------------
		text2= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.031949     0.95765     0.31949    0.029316],...
		'backgroundcolor',[0.4        0.55         0.7],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','text2',...
		'String','dataset:',...
		'HorizontalAlignment','left');
	
	
	%----------------
	%axes-section
	%-------------------
		
		%addyachsebutton
		%----------------
		flipyachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.21891     0.77176     0.18712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','addyachsebutton',...
        'Callback','addremvar(''y+'')',...
		'String','add to y',...
		'HorizontalAlignment','center');
    %addyachsebutton
		%----------------
		flipyachsebutton= uicontrol(schaubild,'units','normalized','style','togglebutton',...
		'position',[0.13891     0.77176     0.07712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','invxachsetoggle',...
        'Callback','',...
		'String','inv',...
		'HorizontalAlignment','center');
		%addxachsebutton
		%----------------
		flipxachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.21891      0.8141     0.18712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','addxachsebutton',...
        'Callback','addremvar(''x+'')',...
		'String','add to x',...
		'HorizontalAlignment','center');
        %addyachsebutton
		%----------------
		flipyachsebutton= uicontrol(schaubild,'units','normalized','style','togglebutton',...
		'position',[0.13891     0.8141     0.07712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','invyachsetoggle',...
        'Callback','',...
		'String','inv',...
		'HorizontalAlignment','center');
		%addzachsebutton
		%----------------
		flipxachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.21891      0.7341     0.18712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','addzachsebutton',...
        'Callback','addremvar(''z+'')',...
		'String','add to z',...
		'HorizontalAlignment','center');
        %addyachsebutton
		%----------------
		flipyachsebutton= uicontrol(schaubild,'units','normalized','style','togglebutton',...
		'position',[0.13891     0.7341     0.07712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','invzachsetoggle',...
        'Callback','',...
		'String','inv',...
		'HorizontalAlignment','center');
        %remyachsebutton
		%----------------
		flipyachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.42891     0.77176     0.09712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','remyachsebutton',...
        'Callback','addremvar(''y-'')',...
		'String','rem',...
		'HorizontalAlignment','center');
		%remxachsebutton
		%----------------
		flipxachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.42891      0.8141     0.09712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','remxachsebutton',...
        'Callback','addremvar(''x-'')',...
		'String','rem',...
		'HorizontalAlignment','center');
		%remzachsebutton
		%----------------
		flipxachsebutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.42891      0.7341     0.09712    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','remzachsebutton',...
        'Callback','addremvar(''z-'')',...
		'String','rem',...
		'HorizontalAlignment','center');
	
		%zachsenpopup
		%----------------
		zachsenpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.53994     0.73941     0.40256    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','zachsenpopup',...
		'String','z-achse',...
		'HorizontalAlignment','center');
		%xachsenpopup
		%----------------
		xachsenpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.53994     0.82085     0.40256    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','xachsenpopup',...
		'String','x-achse',...
		'HorizontalAlignment','center');
		%yachsenpopup
		%----------------
		yachsenpopup= uicontrol(schaubild,'units','normalized','style','popupmenu',...
		'position',[0.53994      0.7785     0.40256    0.026059],...
		'backgroundcolor',[1  1  1],...
		'foregroundcolor',[0  0  0],...
		'Value',1,...
		'tag','yachsenpopup',...
		'String','y-achse',...
		'HorizontalAlignment','center');
		
		%yachsenlabel
		%----------------
		yachsenlabel= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.057508     0.77013    0.089457    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','yachsenlabel',...
		'String','Y:',...
		'HorizontalAlignment','left');
		%zachsenlabel
		%----------------
		yachsenlabel= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.049508      0.72779     0.089457    0.026059],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','yachsenlabel',...
		'String','Z:',...
		'HorizontalAlignment','center');
		%xachsenlabel
		%----------------
		xachsenlabel= uicontrol(schaubild,'units','normalized','style','text',...
		'position',[0.060703     0.81085    0.051118    0.027687],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Value',0,...
		'tag','xachsenlabel',...
		'String','X:',...
		'HorizontalAlignment','left');
	
	%---------------------
	%drawbutton
	%------------------------
	
		%drawbutton
		%----------------
		drawbutton= uicontrol(schaubild,'units','normalized','style','pushbutton',...
		'position',[0.028396    0.011798     0.94652    0.053933],...
		'backgroundcolor',[0.8         0.8         0.8],...
		'foregroundcolor',[0  0  0],...
		'Callback','anovadraw',...
		'Value',0,...
		'tag','drawbutton',...
		'String','draw',...
		'HorizontalAlignment','center');
    
    %------------------
    %scatterradio
    %------------------
    
        scatterradio = uicontrol(schaubild,'units','normalized',...
            'style','radiobutton',...
            'position',[0.05796    0.079529     0.90337    0.039506],...
			'backgroundcolor',[0.7         0.7         0.7],...
            'String','scatter subjects',...
            'tag','scatterradio',...
            'Callback','anovadraw');
        
     %------------------
    %errorbarpopup
    %------------------
        errorbarradio = uicontrol(schaubild,'units','normalized',...
            'style','radiobutton',...
            'backgroundcolor',[1 1 1],...
            'position',[0.05796    0.1389529     0.38337    0.029506],...
			'backgroundcolor',[0.7         0.7         0.7],...
            'String','show errorbars',...
            'tag','errorbarradio',...
            'Callback','anovadraw'); 
        
        errorbarpopup = uicontrol(schaubild,'units','normalized',...
            'style','popupmenu',...
            'backgroundcolor',[1 1 1],...
            'position',[0.45796    0.1289529     0.48337    0.039506],...
            'String',{'std dev';'std error';'confidence'},...
            'tag','errorbarpopup',...
            'Callback','anovadraw');   
    
    




end
    
  
hfactor = findobj('tag','hfactor');
factor = get(hfactor,'userdata');

xachsenpopup = findobj('tag','xachsenpopup');
set(xachsenpopup,'string',char(factor{:,1}));

yachsenpopup = findobj('tag','yachsenpopup');
set(yachsenpopup,'string',char(factor{:,1}));

gruppenpopup  = findobj('tag','gruppenpopup');
set(gruppenpopup,'String', char(factor{:,1}));

drawbutton = findobj('tag','drawbutton');
set(drawbutton,'enable','on');

uigettextfigure = findobj('tag','uigettextfigure');
if length(uigettextfigure)>1
    uigettextfigure = uigettextfigure(1);
end
figure(uigettextfigure);


















