--- loncom/xml/lonplot.pm 2001/12/19 18:27:30 1.6 +++ loncom/xml/lonplot.pm 2001/12/19 19:22:22 1.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.6 2001/12/19 18:27:30 matthew Exp $ +# $Id: lonplot.pm,v 1.7 2001/12/19 19:22:22 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -392,7 +392,14 @@ sub write_gnuplot_file { $gnuplot_input .= 'size ' . $plot{'width'} . ' '; $gnuplot_input .= $plot{'height'} . ' '; $gnuplot_input .= "@Colors\n"; - # title, xlabel, ylabel + # grid + $gnuplot_input .= ($plot->{'grid'} eq 'on' ? + 'set grid\n' : + '' ); + # border + $gnuplot_input .= ($plot->{'border'} eq 'on'? + 'set border\n' : + 'set noborder\n' ); # title, xlabel, ylabel { $gnuplot_input .<<"ENDLABELS"; set title $title->{'text'} @@ -412,7 +419,7 @@ ENDLABELS $gnuplot_input .= '\n'; } } else { - $gnuplot_input .= 'set nokey\n'; + $gnuGplot_input .= 'set nokey\n'; } # axis $gnuplot_input .= 'set xrange ['.$axis{'xmin'}.':'.$axis{'xmin'}.']\n';