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

raeburn raeburn at source.lon-capa.org
Tue Dec 4 20:04:03 EST 2012


raeburn		Wed Dec  5 01:04:03 2012 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  - gnuplot 4.4 reports an error unless "offset" is included before the x,y offset
    amount when used in "set xlabel" and"set ylabel".
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.168 loncom/xml/lonplot.pm:1.169
--- loncom/xml/lonplot.pm:1.168	Tue Nov 20 15:11:05 2012
+++ loncom/xml/lonplot.pm	Wed Dec  5 01:04:03 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.168 2012/11/20 15:11:05 raeburn Exp $
+# $Id: lonplot.pm,v 1.169 2012/12/05 01:04:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1888,8 +1888,8 @@
     $gnuplot_input .= "set samples $Apache::lonplot::plot{'samples'}\n";
     # title, xlabel, ylabel
     # titles
-    my $extra_space_x = ($xtics{'location'} eq 'axis') ? ' 0, -0.5 ' : '';
-    my $extra_space_y = ($ytics{'location'} eq 'axis') ? ' -0.5, 0 ' : '';
+    my $extra_space_x = ($xtics{'location'} eq 'axis') ? ' offset 0, -0.5 ' : '';
+    my $extra_space_y = ($ytics{'location'} eq 'axis') ? ' offset -0.5, 0 ' : '';
 
     if ($target eq 'tex') {
 	$gnuplot_input .= "set title  \"$title\"          font \"".$font_properties->{'printname'}.",".$fontsize."pt\"\n" if (defined($title)) ;




More information about the LON-CAPA-cvs mailing list