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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Tue, 02 Sep 2008 19:55:27 -0000


raeburn		Tue Sep  2 15:55:27 2008 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  - bug 5780.
  - block for minorfreq (for ytics) was in the wrong place following changes in rev 1.146.
     - missing linefeed caused gnuplot error. 
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.147 loncom/xml/lonplot.pm:1.148
--- loncom/xml/lonplot.pm:1.147	Tue Jun 10 08:48:30 2008
+++ loncom/xml/lonplot.pm	Tue Sep  2 15:55:23 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.147 2008/06/10 12:48:30 www Exp $
+# $Id: lonplot.pm,v 1.148 2008/09/02 19:55:23 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1696,14 +1696,13 @@
 	$gnuplot_input .= "$ytics{'start'}, ";
 	$gnuplot_input .= "$ytics{'increment'}, ";
         $gnuplot_input .= "$ytics{'end'} ";
+        if ($target eq 'tex') {
+            $gnuplot_input .= 'font "Helvetica,22"'; # Needed in iso-8859-1 encoding.
+        }
+        $gnuplot_input .= "\n";
         if ($ytics{'minorfreq'} != 0) {
             $gnuplot_input .= "set mytics ".$ytics{'minorfreq'}."\n";
         } 
-	if ($target eq 'tex') {
-	    $gnuplot_input .= 'font "Helvetica,22"'; # Needed in iso-8859-1 encoding.
-	}
-	$gnuplot_input .= "\n";
-
     } else {
 	if ($target eq 'tex') {
 	    $gnuplot_input .= 'set ytics font "Helvetica,22"'."\n"; # Needed for iso 8859-1 enc.