--- loncom/xml/lonplot.pm 2012/10/07 15:04:44 1.167 +++ loncom/xml/lonplot.pm 2012/12/05 01:04:03 1.169 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.167 2012/10/07 15:04:44 raeburn Exp $ +# $Id: lonplot.pm,v 1.169 2012/12/05 01:04:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1764,7 +1764,6 @@ sub generate_tics { sub write_gnuplot_file { my ($tmpdir,$filename,$target)= @_; my ($fontsize, $font_properties) = &get_font($target); - &Apache::lonnet::logthis("Fontsize: $fontsize"); my $gnuplot_input = ''; my $curve; # @@ -1889,8 +1888,8 @@ sub write_gnuplot_file { $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)) ;