--- loncom/homework/functionplotresponse.pm 2010/11/23 17:01:28 1.44 +++ loncom/homework/functionplotresponse.pm 2010/11/23 23:14:20 1.45 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # option list style responses # -# $Id: functionplotresponse.pm,v 1.44 2010/11/23 17:01:28 www Exp $ +# $Id: functionplotresponse.pm,v 1.45 2010/11/23 23:14:20 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -295,22 +295,36 @@ ENDAXESSCRIPT } sub axes_label { - my ($id,$xlabel,$ylabel)=@_; + my ($id,$xmin,$xmax,$ymin,$ymax,$xlabel,$ylabel)=@_; unless ($xlabel || $ylabel) { return ''; } my $return='document.ggbApplet_'.$id.'.evalCommand("topRight=Corner[3]");'; if ($xlabel) { + if (($ymin<0) && ($ymax>0)) { $return.=(<0)) { $return.=(<