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

sakharuk lon-capa-cvs@mail.lon-capa.org
Fri, 16 May 2003 14:50:13 -0000


sakharuk		Fri May 16 10:50:13 2003 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  Size of gnuplot picture is changed to 93 mm according to Ed's desire.
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.82 loncom/xml/lonplot.pm:1.83
--- loncom/xml/lonplot.pm:1.82	Tue Apr 22 15:47:47 2003
+++ loncom/xml/lonplot.pm	Fri May 16 10:50:13 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.82 2003/04/22 19:47:47 matthew Exp $
+# $Id: lonplot.pm,v 1.83 2003/05/16 14:50:13 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -514,7 +514,8 @@
 ENDIMAGE
         } elsif ($target eq 'tex') {
 	    &Apache::lonnet::ssi("/cgi-bin/plot.gif?file=$filename.data&output=eps");
-	    $result = '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics{'.&Apache::lonnet::unescape($filename).'.eps}';
+
+	    $result = '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics[width=93 mm]{'.&Apache::lonnet::unescape($filename).'.eps}';
 	}
     } elsif ($target eq 'edit') {
 	$result.=&Apache::edit::tag_end($target,$token);