[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Thu, 25 Apr 2002 20:39:50 -0000
matthew Thu Apr 25 16:39:50 2002 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
Tex (eps) output now defaults to a line width of 2 on the curves. Too bad the
gif driver does not support linewidth...
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.71 loncom/xml/lonplot.pm:1.72
--- loncom/xml/lonplot.pm:1.71 Thu Apr 25 13:40:50 2002
+++ loncom/xml/lonplot.pm Thu Apr 25 16:39:50 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.71 2002/04/25 17:40:50 matthew Exp $
+# $Id: lonplot.pm,v 1.72 2002/04/25 20:39:50 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1050,11 +1050,8 @@
$gnuplot_input.=
$curve->{'function'}.' title "'.
$curve->{'name'}.'" with '.
- $curve->{'linestyle'};
-#
-# gnuplot's term=gif driver does not handle linewidths :(
-# . ' linewidth '. $curve->{'linewidth'};
-#
+ $curve->{'linestyle'};
+ $gnuplot_input.= ' linewidth 2 ' if ($target eq 'tex');
if (($curve->{'linestyle'} eq 'points') ||
($curve->{'linestyle'} eq 'linespoints') ||
($curve->{'linestyle'} eq 'errorbars') ||
@@ -1087,6 +1084,7 @@
$gnuplot_input.= '"'.$datafilename.'" title "'.
$curve->{'name'}.'" with '.
$curve->{'linestyle'};
+ $gnuplot_input.= ' linewidth 2 ' if ($target eq 'tex');
if (($curve->{'linestyle'} eq 'points') ||
($curve->{'linestyle'} eq 'linespoints') ||
($curve->{'linestyle'} eq 'errorbars') ||