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

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 09 Oct 2007 22:11:52 -0000


albertel		Tue Oct  9 18:11:52 2007 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  - do linewidth after any special attributes for some linestyles
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.130 loncom/xml/lonplot.pm:1.131
--- loncom/xml/lonplot.pm:1.130	Tue Sep 18 19:29:39 2007
+++ loncom/xml/lonplot.pm	Tue Oct  9 18:11:51 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.130 2007/09/18 23:29:39 albertel Exp $
+# $Id: lonplot.pm,v 1.131 2007/10/09 22:11:51 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1361,7 +1361,6 @@
 		$curve->{'function'}.' title "'.
 		$curve->{'name'}.'" with '.
                 $curve->{'linestyle'};
-            $gnuplot_input.= ' linewidth '.$curve->{'linewidth'};
 
             if (($curve->{'linestyle'} eq 'points')      ||
                 ($curve->{'linestyle'} eq 'linespoints') ||
@@ -1374,6 +1373,8 @@
             } elsif ($curve->{'linestyle'} eq 'filledcurves') { 
                 $gnuplot_input.= ' '.$curve->{'limit'};
             }
+            $gnuplot_input.= ' linewidth '.$curve->{'linewidth'};
+
 	} elsif (exists($curve->{'data'})) {
 	    # Store data values in $datatext
 	    my $datatext = '';
@@ -1397,7 +1398,6 @@
 	    $gnuplot_input.= '"'.$datafilename.'" title "'.
 		$curve->{'name'}.'" with '.
 		$curve->{'linestyle'};
-            $gnuplot_input.= ' linewidth '.$curve->{'linewidth'};
             if (($curve->{'linestyle'} eq 'points')      ||
                 ($curve->{'linestyle'} eq 'linespoints') ||
                 ($curve->{'linestyle'} eq 'errorbars')   ||
@@ -1409,6 +1409,7 @@
             } elsif ($curve->{'linestyle'} eq 'filledcurves') { 
                 $gnuplot_input.= ' '.$curve->{'limit'};
             }
+            $gnuplot_input.= ' linewidth '.$curve->{'linewidth'};
 	}
     }
     # Write the output to a file.