vis_files/generate_plots.js
/// Plots the results on the "resultcan" canvas
Plots the results on the "resultcan" canvas
Plots the results on the " resultcan " canvas
function plot_results()
{
	plot = get_plot();
	var vis = visjson.plots[plot];
	switch(vis.type){
	case "OP_ANIM_MAP": drawmap(vis);	break;
	case "OP_MIXING_WITHIN_MAP": case "OP_MIXING_WITHIN_ANIM_MAP": drawmap(vis);	break;
	case "OP_AREA_COVAR": case "OP_AREA_TV_COVAR": drawmap(vis); break;
	case "OP_LEVEL_EFFECT": drawmap(vis); break;
	case "OP_COMP_MODEL": drawcompmodel(vis); break;
	case "OP_FOI_MODEL": case "OP_DESC": break;
	case "OP_MIXING_BETWEEN_ANIM_MAP": case "OP_MIXING_BETWEEN_MAP": drawmixingmap(vis); break;
	case "OP_MIXING_POP_ANIM_MAP": case "OP_MIXING_POP_MAP": drawmixingmap(vis); break;
	case "OP_AGE_MATRIX": case "OP_AGE_MATRIX_POST": case "OP_AGE_MATRIX_DIF": drawmatrix(vis); break;
	case "OP_PARAM_TABLE": case "OP_PRIOR_TABLE": break;
	case "OP_SPLINE": case "OP_GRAPH": drawlines(vis); draw_timelabels(); break;
	case "OP_GENERATION": case "OP_LOG_GENERATION": case "OP_TRACE": drawlines(vis); break;
	case "OP_TV_COVAR": drawlines(vis); break;
	case "OP_CPU": drawloglines(vis); break;
	case "OP_ME":	drawME(vis); break;
	case "OP_MARGINAL": drawmarginal(vis); break;
	case "OP_GRAPH_MARGINAL": drawmarginal(vis); break;
	case "OP_PARAMDIST": drawparamdist(vis); break;
	default: alertp("plot not supported"); break;
	}
}
function plot_results ( ) { plot = get_plot ( ) ; var vis = visjson . plots [ plot ] ; switch ( vis . type ) { case "OP_ANIM_MAP" : drawmap ( vis ) ; break ; case "OP_MIXING_WITHIN_MAP" : case "OP_MIXING_WITHIN_ANIM_MAP" : drawmap ( vis ) ; break ; case "OP_AREA_COVAR" : case "OP_AREA_TV_COVAR" : drawmap ( vis ) ; break ; case "OP_LEVEL_EFFECT" : drawmap ( vis ) ; break ; case "OP_COMP_MODEL" : drawcompmodel ( vis ) ; break ; case "OP_FOI_MODEL" : case "OP_DESC" : break ; case "OP_MIXING_BETWEEN_ANIM_MAP" : case "OP_MIXING_BETWEEN_MAP" : drawmixingmap ( vis ) ; break ; case "OP_MIXING_POP_ANIM_MAP" : case "OP_MIXING_POP_MAP" : drawmixingmap ( vis ) ; break ; case "OP_AGE_MATRIX" : case "OP_AGE_MATRIX_POST" : case "OP_AGE_MATRIX_DIF" : drawmatrix ( vis ) ; break ; case "OP_PARAM_TABLE" : case "OP_PRIOR_TABLE" : break ; case "OP_SPLINE" : case "OP_GRAPH" : drawlines ( vis ) ; draw_timelabels ( ) ; break ; case "OP_GENERATION" : case "OP_LOG_GENERATION" : case "OP_TRACE" : drawlines ( vis ) ; break ; case "OP_TV_COVAR" : drawlines ( vis ) ; break ; case "OP_CPU" : drawloglines ( vis ) ; break ; case "OP_ME" : drawME ( vis ) ; break ; case "OP_MARGINAL" : drawmarginal ( vis ) ; break ; case "OP_GRAPH_MARGINAL" : drawmarginal ( vis ) ; break ; case "OP_PARAMDIST" : drawparamdist ( vis ) ; break ; default : alertp ( "plot not supported" ) ; break ; } }
Plots the results on the "resultcan" canvas
Plots the results on the " resultcan " canvas
//case "OP_AGE_MATRIX_DIF": drawmatrix_dif(vis); break; zz