Feature request: boolean arguments for slowplot[]

SparksMaths shared this idea 1 year ago
Completed

Can we add a true/false flag to the arguments for slowplot to make the function only trace out once (instead of repeating when it reaches the end of the screen).

Should only need to change the slider animation property from "increasing" to "increasing (once)".

e.g. slowplot[sin(x),true]

traces out sin(x) once

or slowplot[sin(x),false]

repeatedly traces out sin(x) (current behaviour).


I'd request an omission of the boolean to default to true (single trace).

so command would become:

slowplot[<function>, <boolean TraceOnce>]

with slowplot[<function>] defaulting to be equivalent to slowplot[function, true]

Comments (8)

photo
1

slowplot does not create an object of GG. it creates a slider and a conditional piece function

you can open properties of the created slider and select increase once in repeat checkbox, then you can crete a button for an script if you want repeat it one more time

photo
1

Yes - I know I can change the properties of the slider myself, but I think the main value of the slowplot function is as a shortcut to creating an animated plot of a function (in a teaching situation say). This is usually useful to animate only once. I'm looking to see this shortcut become more versatile so it can be used 'on the go' more flexibly.

photo
1

Do you think we should change the default to "Increasing (once)" as well?

photo
1

I personally would prefer it... :) When using the slowplot (rare enough, to be honest) it is to add a bit of tension to a classroom demonstration of a function, and I rarely want it to repeat - just plot it slowly, once.

:)

photo
photo
1

and what about a default behaviour for click on slider equivalent to click script with

setvalue(a,min)

startanimation(a,true)

now sliders have not clic script

I know how to do it with buttom but I think this is a good idea

photo
1

It would be nice to have that behaviour easily accessible from a simple click, but we'd have to be careful to avoid any accidental animations when you were just trying to slide the slider...

photo
1

really my mind was in ver5

in ver6 each slider has its own play buttom ( in this case it is not necesary)

it is enough if a click on play buttom does slider=min for increasing once sliders

photo
photo
1

Update: Michael (I think!) has implemented this now - Thanks!

see https://wiki.geogebra.org/e...

(Although, if I was going to add further feedback, I'd prefer the default behaviour to be equivalent to SlowPlot[f,false] - i.e. a single trace - rather than SlowPlot[f,true], since I usually want to only animate it once)

© 2019 International GeoGebra Institute