[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 27 Feb 2002 22:17:06 -0000


matthew		Wed Feb 27 17:17:06 2002 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  Now call gnuplot for $target eq 'tex'.
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.51 loncom/xml/lonplot.pm:1.52
--- loncom/xml/lonplot.pm:1.51	Wed Feb 27 17:10:23 2002
+++ loncom/xml/lonplot.pm	Wed Feb 27 17:17:06 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.51 2002/02/27 22:10:23 matthew Exp $
+# $Id: lonplot.pm,v 1.52 2002/02/27 22:17:06 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -29,7 +29,7 @@
 # 12/17 12/18 12/19 12/20 12/21 12/27 12/28 12/30 12/31 Matthew
 # 01/01/02 Matthew
 # 01/02 01/03 01/04 01/07 01/08 01/09 Matthew
-# 01/21 02/05 02/06 Matthew
+# 01/21 02/05 02/06 2/28Matthew
 
 package Apache::lonplot;
 
@@ -460,6 +460,7 @@
      alt    = "image should be /cgi-bin/plot.gif?$filename" />
 ENDIMAGE
         } elsif ($target eq 'tex') {
+	    system "gnuplot $filename";
 	    $result = "$filename.eps";
 	}
     } elsif ($target eq 'edit') {