Show
Ignore:
Timestamp:
08/07/2004 09:07:55 PM (8 years ago)
Author:
kstemen
Message:

First version of pure XML grapher, with the plot and parser combined together in php.

Location:
trunk/matml/webselector/php
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/matml/webselector/php/font.php

    r48 r79  
    55  $black = imagecolorallocate($im, 0, 0, 0); 
    66 
    7 $font = "/home/el_oso/public_html/matdl/php/helcr.ttf"; 
     7$font = "helcr.ttf"; 
    88 
    99  // Replace path by your own font path 
  • trunk/matml/webselector/php/plot.php

    r76 r79  
    66 
    77$plottype = $_REQUEST['plot']; 
    8 $log = $_REQUEST['log']; 
     8if(isset($_REQUEST['log'])) 
     9    $log = $_REQUEST['log']; 
     10else 
     11    $log = 0; 
    912 
    1013 
     
    3134// For using a nice font 
    3235 
    33 $font = "/home/el_oso/public_html/matdl/php/vixar.ttf"; 
     36$font = "vixar.ttf"; 
    3437 
    3538//$valuesX = array(0,10,20,30); 
     
    6568 
    6669 
    67 for($i = 0; $i < count($number_mat); $i++) { 
     70for($i = 0; $i < $number_mat; $i++) { 
    6871 
    6972 
     
    8891   
    8992  imagettftext($image, 14, 0, $x-25, $y-3, $black, $font, $names[$i]); 
     93} 
    9094  imagettftext($image, 14, 0, .75 * $Isize/2, $Isize * 0.99, $black, $font, $xlabel); 
    9195  imagettftext($image, 14, 90, 15 , 1.25*($Isize)/2, $black, $font, $ylabel); 
    92 } 
    9396 
    9497Header("Content-Type: image/png"); 
  • trunk/matml/webselector/php/select.php

    r48 r79  
    1414<div id="main"> 
    1515<? 
    16 $plot = $_REQUEST[plot]; 
     16$plot = $_REQUEST["plot"]; 
    1717 
    1818if(!isset($plot)){