Script to switch axis labels between radians and degrees?

Funkybeatzzz shared this question 1 year ago
Answered

Is it possible to add a button that would switch the x-axis labels between radians and degrees? I'm trying to show my students the differences between sine functions in radians and degrees and it would be great to not have to go into the axis settings each time to change the labels. Thanks for any advice!

Comments (3)

photo
1

try creating a number ie:dist. then open preferences->graphics->xaxis, in distance type dist

then you can change dist for several grids

define sin(xº) also and hide/show the function you want

ZoomIn( <Min x>, <Min y>, <Max x>, <Max y> ) can be useful in a buttom for focusing

photo
1

The idea from mathmagic with a script in a checkbox.

photo
1

Another idea: you could use these in two scripts to switch between Graphics View 1 & 2:

SetPerspective("G")
SetPerspective("D")

© 2019 International GeoGebra Institute