I guess I need longer examples- maybe full scripts to pull from. I am trying to set the window based on user inputs. I think I may need to define local variables, or I am not sure how to let the language know how to assign them a value. For now I might hack and do the calculations in the middle of this in the graph itself
#pull the mean and standard deviation from the user input
a = NormalCurve.number(“u”)
b = NormalCurve.number(“s”)
#calculate a good viewing rectangle
#this is where the trouble obviously is
#this is where the caution sign is
xlow = a-4b
xhigh = a+4b
ylow = -0.25/2b
yhigh = 1/2b
#set the good viewing rectange
#this works to pass numbers, and a, or b
xmin : ylow
xmax : yhigh
ymin : ylow
ymax : yhigh