--- loncom/homework/functionplotresponse.pm 2010/11/23 17:01:28 1.44 +++ loncom/homework/functionplotresponse.pm 2010/11/23 23:55:01 1.46 @@ -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.46 2010/11/23 23:55:01 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -295,28 +295,42 @@ 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.=(<