Diff for /loncom/xml/lonplot.pm between versions 1.94 and 1.95

version 1.94, 2004/01/07 18:16:02 version 1.95, 2004/03/08 17:31:37
Line 401  required.  Unfortunately, you must make Line 401  required.  Unfortunately, you must make
 in the order gnuplot expects the data.  in the order gnuplot expects the data.
 </p><p>  </p><p>
 Specifying the data should usually be done with a perl variable or array,   Specifying the data should usually be done with a perl variable or array, 
 such as \@Xdata and \@Ydata.  You may also specify numerical data seperated   such as \@Xdata and \@Ydata.  You may also specify numerical data separated 
 by commas.  Again, the order of the <b>data</b> tags is important.  The  by commas.  Again, the order of the <b>data</b> tags is important.  The
 first tag will be the X data and the second will be the Y data.  first tag will be the X data and the second will be the Y data.
 </p>  </p>
Line 512  sub end_gnuplot { Line 512  sub end_gnuplot {
     my $randnumber;      my $randnumber;
     # need to call rand everytime start_script would evaluate, as the      # need to call rand everytime start_script would evaluate, as the
     # safe space rand number generator and the global rand generator       # safe space rand number generator and the global rand generator 
     # are not seperate      # are not separate
     if ($target eq 'web' || $target eq 'tex' || $target eq 'grade' ||      if ($target eq 'web' || $target eq 'tex' || $target eq 'grade' ||
  $target eq 'answer') {   $target eq 'answer') {
       $randnumber=int(rand(1000));        $randnumber=int(rand(1000));
Line 887  sub start_data { Line 887  sub start_data {
  my @data;   my @data;
  if ($datatext =~ /,/) { # comma deliminated   if ($datatext =~ /,/) { # comma deliminated
     @data = split /,/,$datatext;      @data = split /,/,$datatext;
  } else { # Assume it's space seperated.   } else { # Assume it's space separated.
     @data = split / /,$datatext;      @data = split / /,$datatext;
  }   }
  for (my $i=0;$i<=$#data;$i++) {   for (my $i=0;$i<=$#data;$i++) {

Removed from v.1.94  
changed lines
  Added in v.1.95


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>