[LON-CAPA-cvs] cvs: loncom /interface/statistics loncorrectproblemplot.pm
matthew
lon-capa-cvs@mail.lon-capa.org
Tue, 03 Feb 2004 16:28:55 -0000
matthew Tue Feb 3 11:28:55 2004 EDT
Modified files:
/loncom/interface/statistics loncorrectproblemplot.pm
Log:
Scale the maximum value showed on the map to avoid non integer labels on
the y axis. Added a title to the plot.
Index: loncom/interface/statistics/loncorrectproblemplot.pm
diff -u loncom/interface/statistics/loncorrectproblemplot.pm:1.4 loncom/interface/statistics/loncorrectproblemplot.pm:1.5
--- loncom/interface/statistics/loncorrectproblemplot.pm:1.4 Mon Feb 2 16:54:13 2004
+++ loncom/interface/statistics/loncorrectproblemplot.pm Tue Feb 3 11:28:55 2004
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: loncorrectproblemplot.pm,v 1.4 2004/02/02 21:54:13 matthew Exp $
+# $Id: loncorrectproblemplot.pm,v 1.5 2004/02/03 16:28:55 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -171,7 +171,9 @@
$Str.= '<tr><td>'.$bin->{'start'}.' - '.$bin->{'end'}.'</td>'.
'<td>'.$bin->{'count'}.'</td></tr>'."\n";
}
- my $title = '';
+ # scale max to an integer.
+ $max = 5*(int($max/5)+1);
+ my $title = 'Correct Problems Plot';
$Str .= "</table><br />\n";
$Str = "<br />\n".&Apache::loncommon::DrawBarGraph($title,
'Num Correct Problems',