From c80226899f5cdd9f11c163817d59445213f5bef0 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 14 Mar 2018 23:19:16 -0500 Subject: Separating Octave and php calculations --- sourcecodes/network_layout_inv_2_example.php | 37 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'sourcecodes/network_layout_inv_2_example.php') diff --git a/sourcecodes/network_layout_inv_2_example.php b/sourcecodes/network_layout_inv_2_example.php index 3ec0d84c..7835ec0d 100644 --- a/sourcecodes/network_layout_inv_2_example.php +++ b/sourcecodes/network_layout_inv_2_example.php @@ -573,7 +573,7 @@ $flag=0; //evidence flag if($ev_arr[$ii]==$name) { $evd=$evdata_arr[$ii]; - $evd=levelmap($evd,$name,$levelmap); + //$evd=levelmap($evd,$name,$levelmap); $flag=1; break; } @@ -766,8 +766,8 @@ else chart.draw(data, {title:"", titleTextStyle: {fontSize: }, width:, height:, - vAxis: {title: "State", textStyle: {fontSize:}}, - hAxis: {title: "Fraction", minValue: 0, maxValue: 1, gridlines: {count: 3}}, legend: {position: 'none'}, + vAxis: {textStyle: {fontSize:}}, + hAxis: {minValue: 0, maxValue: 1, gridlines: {count: 3}}, legend: {position: 'none'}, backgroundColor: {stroke: '', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); @@ -800,20 +800,20 @@ if($evd==-9999) { ?> var data = google.visualization.arrayToDataTable([ - ['', 'Old'], + [{label:'',type:'number'},{label:'Old'}], var data = google.visualization.arrayToDataTable([ - ['', 'Old', 'New'], + [{label:'',type:'number'},{label:'Old'},{label:'New'}], var data = google.visualization.arrayToDataTable([ - ['', 'Old', 'New'], + [{label:'',type:'number'},{label: 'Old'},{label: 'New'}], ", titleTextStyle: {fontSize: }, legend: {position: 'none'}, width:, height:, - hAxis: {maxValue: 1, minValue: 0}, - vAxis: {maxValue: 1, minValue: 0}, - backgroundColor: {stroke: '', strokeWidth: 5}} + hAxis: {gridlines: {count: 4}, textStyle: {fontSize: 9}, viewWindowMode: 'maximized'}, + vAxis: {maxValue: 1, minValue: 0,viewWindow: {min:0}, gridlines: {count:5}, textStyle: {fontSize: 9}}, + chartArea:{left:30,top:25,right:8,bottom:25}, + backgroundColor: {stroke: '', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); } -- cgit 1.4.1