# [LON-CAPA-users] GeoGebra (Function Plot Response) Problem - Turn off snap to grid

Damien Guillaume damieng at msu.edu
Mon Sep 28 09:51:34 EDT 2015

```I am not seeing a way to turn off "snap to grid" in the Javascript API:
https://wiki.geogebra.org/en/Reference:JavaScript

... except maybe with setXML(), using
geogebra/euclidianView/evSettings/@pointCapturing
https://wiki.geogebra.org/en/Reference:XML_tags_in_geogebra.xml#Element:_euclidianView

----------------
> Is there any way to turn off the “snap to grid” feature in the Function Plot Response problems?
>
> Some of the vector heads/tails that students have to manipulate are so close to certain grid junctions that the vector snaps to the junction, but that moves them to a position that the computer then evaluates as incorrect.
>
> I have tried setting the grid visibility to off, but the snap to feature is still present.
>
> An example of a problematic problem is shown below:
>
> <problem>
> <script type="loncapa/perl">
> \$BOSx=&random(4800,5200,50);
> \$BOSy=&random(700,950,50);
> \$dt=&sqrt((\$BOSx)**2+(\$BOSy)**2);
> </script>
>
> <startouttext />
> a) Amit flies due east from San Francisco (SFO) to Washington, D.C. (IAD), a displacement of &format(\$IADx,'1f') km. He then flies from Washington to Boston (BOS), a displacement of &format(\$d2,'1f') km at an angle of &format(\$theta2,'1f')° west of north. <p />
> <ol>
> <li>In the diagram below the black vectors can be moved by grabbing them in the center and they can be adjusted by grabbing the blue dots at either end.</li>
> <li>The red vector automatically adjusts itself and you should not try to change its position or length manually.</li>
> <li>Move and adjust the SFOtoIAD vector so it originates at SFO and terminates at IAD.</li>
> <li>Move and adjust the IADtoBOS vector so it originates at IAD and terminates at BOS.</li>
> <li>Notice that the red resultant vector changes as you change the other two vectors.</li>
> <li>When you have adjusted the black vectors as described, press the submit button.</li>
> </ol>
> <endouttext />
>
> <part id="a">
> <center>
>
> <functionplotresponse id="11" ymin="-200" xaxisvisible="no" width="450" gridvisible="yes" ymax="1200" height="250" yaxisvisible="no" xmax="6200" xmin="-200">
> <functionplotelements>
> <plotobject x="0" y="0" label="SFO" />
>
>
> <plotobject x="\$BOSx" y="\$BOSy" label="BOS" />
> <plotvector taily="800" tailx="2000" tipy="800" tipx="3000" label="SFOtoIAD" />
> <plotvector label="IADtoBOS" taily="500" tailx="2000" tipy="500" tipx="3000" />
>
>
> <drawvectorsum label="Resultant" vectorlist="SFOtoIAD,IADtoBOS" showvalue="yes" tailx="0" taily="0" />
> </functionplotelements>
> <functionplotruleset>
>
>
> </functionplotruleset>
>
> </functionplotresponse>
>
> </center>
> </part>
>
> <part id="b">
> <startouttext />
> b) What is the magnitude of Amit's total displacement?
> <endouttext />
> <numericalresponse format="2f" answer="\$dt" unit="km" id="12">
> <responseparam description="Numerical Tolerance" type="tolerance" name="tol" default="5%" />
>
>      <textline spellcheck="none" readonly="no" />
>
> </numericalresponse>
>
>
> </part>
> </problem>
>
>
> Any suggestions would be appreciated.
>
> Best,
> Jon Hall
>
>
>
>
>
>
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.5615282,"math_prob":0.46422726,"size":3928,"snap":"2019-35-2019-39","text_gpt3_token_len":1227,"char_repetition_ratio":0.13200815,"word_repetition_ratio":0.01372549,"special_character_ratio":0.33095723,"punctuation_ratio":0.10305958,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9551854,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-23T14:19:33Z\",\"WARC-Record-ID\":\"<urn:uuid:02da7b97-2caa-4a87-bab7-53e2faf18d55>\",\"Content-Length\":\"8885\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6fa09fef-87c0-4c4a-9de9-e1e26f805237>\",\"WARC-Concurrent-To\":\"<urn:uuid:3677aee2-b33d-4ecf-9769-3927dc4850ef>\",\"WARC-IP-Address\":\"35.9.66.226\",\"WARC-Target-URI\":\"http://mail.lon-capa.org/pipermail/lon-capa-users/2015-September/004952.html\",\"WARC-Payload-Digest\":\"sha1:3QRHLN73WYKHFCIWIAQ25P2TOBXO6E5H\",\"WARC-Block-Digest\":\"sha1:DAN5E6CIMCJV6TWRXNBK7OGZXA56OJOO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514576965.71_warc_CC-MAIN-20190923125729-20190923151729-00491.warc.gz\"}"}