0
$\begingroup$

The following code is a modification of Wolfram code I found under ClickPane Help. I want to convert from Dynamic to Manipulate to make it easier for me to add various controls. I do want to keep the ClickPane formulation. Thanks.

DynamicModule[{f = {}}, 
 ClickPane[
  Dynamic@Plot[f, {t, 0, 10}, PlotRange -> 5, Frame -> True],
(AppendTo[f, Exp[-(t - #[[1]])]*#[[2]]]) &]]
$\endgroup$

1 Answer 1

1
$\begingroup$
Manipulate[
  ClickPane[Plot[g, {t, 0, 10}, PlotRange -> x, Frame -> True], 
    (AppendTo[g, Exp[-(t - #[[1]])]*#[[2]]]) &], 
  {x, 1, 10}, Initialization :> {g = {}}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.