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_example.php | 31 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'sourcecodes/network_layout_inv_example.php') diff --git a/sourcecodes/network_layout_inv_example.php b/sourcecodes/network_layout_inv_example.php index 1e5cd51b..04543523 100644 --- a/sourcecodes/network_layout_inv_example.php +++ b/sourcecodes/network_layout_inv_example.php @@ -60,31 +60,31 @@ $node=trim($str_arrmat[0]); if($node<=5) { $width=200; - $hieght=150; + $height=150; $font=14; } else if($node>5 && $node<=7) { $width=150; - $hieght=120; + $height=120; $font=12; } else if($node>7 && $node<=10) { $width=110; - $hieght=85; + $height=85; $font=10; } else { $width=80; - $hieght=60; + $height=60; $font=8; } */ $width=150; - $hieght=150; + $height=150; $font=12; $r_index=$node+2; @@ -401,9 +401,9 @@ for($i=0;$i<$nnode;$i++) } 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'}, + width:, height:, + vAxis: {textStyle: {fontSize:}}, + hAxis: {minValue: 0, maxValue: 1, gridlines: {count: 3}}, legend: {position: 'none'}, backgroundColor: {stroke: 'black', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); @@ -417,13 +417,13 @@ for($i=0;$i<$nnode;$i++) function { // Create and populate the data table. var data = google.visualization.arrayToDataTable([ - ['', ''], + [{label:'', type: 'number'},{label: ''}], ", titleTextStyle: {fontSize: }, legend: {position: 'none'}, - width:, height:, - hAxis: {maxValue: 1, minValue: 0}, - vAxis: {maxValue: 1, minValue: 0}, + width:, height:, + 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: 'black', strokeWidth: 5}} ); google.visualization.events.addListener(chart, 'select', selectHandler); @@ -641,7 +642,7 @@ for($i=0;$i<$nnode;$i++) -
+