--- loncom/homework/functionplotresponse.pm 2011/11/18 17:44:07 1.71 +++ loncom/homework/functionplotresponse.pm 2011/11/18 18:02:04 1.72 @@ -1,7 +1,7 @@ # LearningOnline Network with CAPA # Functionplot responses # -# $Id: functionplotresponse.pm,v 1.71 2011/11/18 17:44:07 www Exp $ +# $Id: functionplotresponse.pm,v 1.72 2011/11/18 18:02:04 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -402,7 +402,7 @@ sub plotobject_script { # sub plotvector_script { - my ($id,$label,$xs,$ys,$xe,$ye)=@_; + my ($id,$label,$xs,$ys,$xe,$ye,$xmin,$xmax)=@_; unless ($label) { $Apache::functionplotresponse::counter++; $label='V'.$Apache::functionplotresponse::counter; @@ -410,6 +410,7 @@ sub plotvector_script { my $startlabel=$label.'Start'; my $endlabel=$label.'End'; my $pointlabel=$label.'Point'; + my $pointx=2.*($xmax-$xmin)+$xmax; my $anglelabel=$label.'Angle'; return(<