[LON-CAPA-cvs] cvs: loncom /cgi graph.png

matthew lon-capa-cvs@mail.lon-capa.org
Thu, 18 Dec 2003 16:33:02 -0000


matthew		Thu Dec 18 11:33:02 2003 EDT

  Modified files:              
    /loncom/cgi	graph.png 
  Log:
  Added handling of y1_label and y2_label for multi axis plots.
  
  
Index: loncom/cgi/graph.png
diff -u loncom/cgi/graph.png:1.31 loncom/cgi/graph.png:1.32
--- loncom/cgi/graph.png:1.31	Wed Oct 29 10:18:09 2003
+++ loncom/cgi/graph.png	Thu Dec 18 11:33:02 2003
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# $Id: graph.png,v 1.31 2003/10/29 15:18:09 matthew Exp $
+# $Id: graph.png,v 1.32 2003/12/18 16:33:02 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -172,6 +172,9 @@
     $GraphSettings{'zero_axis'}     = 1;
     if (&get_env('two_axes',0)) {
         $GraphSettings{'two_axes'}     = 1;
+        $GraphSettings{'y1_label'}     = &get_env('y1_label',
+                                                  $GraphSettings{'y_label'});
+        $GraphSettings{'y2_label'}     = &get_env('y2_label','');
         $GraphSettings{'y1_max_value'} = &get_env('y1_max_value',0);
         $GraphSettings{'y1_min_value'} = &get_env('y1_min_value',1);
         $GraphSettings{'y2_max_value'} = &get_env('y2_max_value',1);