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

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 22 Apr 2003 19:47:47 -0000


matthew		Tue Apr 22 15:47:47 2003 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  Added 'texwidth' attribute.  The attribute is not implemented but can be
  entered and has a default value.
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.81 loncom/xml/lonplot.pm:1.82
--- loncom/xml/lonplot.pm:1.81	Fri Feb  7 17:03:21 2003
+++ loncom/xml/lonplot.pm	Tue Apr 22 15:47:47 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.81 2003/02/07 22:03:21 albertel Exp $
+# $Id: lonplot.pm,v 1.82 2003/04/22 19:47:47 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -112,7 +112,8 @@
 ##                                                               ##
 ###################################################################
 my @gnuplot_edit_order = 
-    qw/alttag bgcolor fgcolor height width font transparent grid samples border align/;
+    qw/alttag bgcolor fgcolor height width font transparent grid samples 
+    border align texwidth/;
 
 my $gnuplot_help_text = <<"ENDPLOTHELP";
 <p>
@@ -221,7 +222,14 @@
 	 description => 'alignment for image in html',
 	 edit_type   => 'choice',
 	 choices     => ['left','right','center']
-	 } 
+	 },
+     texwidth     => {
+         default     => '93',
+         test        => $int_test,
+         description => 'Width of plot when printed (mm)',
+         edit_type   => 'entry',
+         size        => '5'
+         },
      );
 
 my %key_defaults =