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 = {}}, 
  Dynamic@Plot[f, {t, 0, 10}, PlotRange -> 5, Frame -> True],
(AppendTo[f, Exp[-(t - #[[1]])]*#[[2]]]) &]]
  ClickPane[Plot[g, {t, 0, 10}, PlotRange -> x, Frame -> True], 
    (AppendTo[g, Exp[-(t - #[[1]])]*#[[2]]]) &], 
  {x, 1, 10}, Initialization :> {g = {}}]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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