vis_files/generate_plots.js
/// Plots information about a selected model parameter
Plots information about a selected model parameter
Plots information about a selected model parameter
function selparam_info(x,y,wid)
{
	var wmax = textwidth_simp("Symbol",NORMTABLEHEADFONT); 
	for(row = 0; row < selparam_table.length; row++){
		lab = splitintosub(selparam_table[row].param,NORMTABLEFONT);
		w = lab[lab.length-1].w+lab[lab.length-1].dw;
		if(w > wmax) wmax = w;
	}
	wmax += 5;
	addbutton("Symbol",x,y,0,seltabledy,-1,NORMTABLEHEADBUT,-1,-1);
	addbutton("Parameter name",x+wmax,y,0,seltabledy,-1,NORMTABLEHEADBUT,-1,-1);
	taby_slidefrac = sellinemax/selparam_table.length; 
	if(taby_slidefrac < 1){	
		addbutton("",x+wid,y+seltabledy,10,sellinemax*seltabledy,TABYSLIDEBUT,TABYSLIDEBUT,-1,-1);
	}
	var rowmin = Math.floor(taby_slide*selparam_table.length*1.001);
	var rowmax = rowmin + sellinemax; 
	if(rowmax > selparam_table.length) rowmax = selparam_table.length;
	for(row = rowmin; row < rowmax; row++){
		var yy = y+seltabledy*(row-rowmin+1);
		addbutton(selparam_table[row].param,x,yy,wmax,seltabledy,-1,NORMTABLEBUT,-1,-1);
		addbutton(selparam_table[row].name,x+wmax,yy,wid-wmax,seltabledy,-1,NORMTABLEBUT,-1,-1);
	}
}
function selparam_info ( x , y , wid ) { var wmax = textwidth_simp ( "Symbol" , NORMTABLEHEADFONT ) ; for ( row = 0 ; row < selparam_table . length ; row ++ ) { lab = splitintosub ( selparam_table [ row ] . param , NORMTABLEFONT ) ; w = lab [ lab . length - 1 ] . w + lab [ lab . length - 1 ] . dw ; if ( w > wmax ) wmax = w ; } wmax += 5 ; addbutton ( "Symbol" , x , y , 0 , seltabledy , - 1 , NORMTABLEHEADBUT , - 1 , - 1 ) ; addbutton ( "Parameter name" , x + wmax , y , 0 , seltabledy , - 1 , NORMTABLEHEADBUT , - 1 , - 1 ) ; taby_slidefrac = sellinemax / selparam_table . length ; if ( taby_slidefrac < 1 ) { addbutton ( "" , x + wid , y + seltabledy , 10 , sellinemax * seltabledy , TABYSLIDEBUT , TABYSLIDEBUT , - 1 , - 1 ) ; } var rowmin = Math . floor ( taby_slide * selparam_table . length * 1.001 ) ; var rowmax = rowmin + sellinemax ; if ( rowmax > selparam_table . length ) rowmax = selparam_table . length ; for ( row = rowmin ; row < rowmax ; row ++ ) { var yy = y + seltabledy * ( row - rowmin + 1 ) ; addbutton ( selparam_table [ row ] . param , x , yy , wmax , seltabledy , - 1 , NORMTABLEBUT , - 1 , - 1 ) ; addbutton ( selparam_table [ row ] . name , x + wmax , yy , wid - wmax , seltabledy , - 1 , NORMTABLEBUT , - 1 , - 1 ) ; } }
Plots information about a selected model parameter
Plots information about a selected model parameter