Two questions: Drawing Normal Curve and setting start & end
Michael J. Lew
michaell at unimelb.edu.au
Wed Nov 24 17:40:28 EST 2004
>At 12:00 PM -0500 24/11/04, Ruben wrote:
>I think this is getting close to what I want to do, but where do I
>find this DistHistoBox graphic? Is it built in? ...what am I missing
>here?
It's just a graphic. Choose the Rectangle tool (you may need to click
the Show Paint & Draw Tools disclosure triangle on the tool palette
to see it) and draw a box. Make its name "DistHistoBox" to match its
name in my script. You will also nee to make a graphic (a line,
anywhere initially) called "DistHistoLine".
To make my script work you need to make one button called "Plot
Histo" and put the MouseUp handler and StandardNormalPDF function
into it (the function could alternatively be at a higher level in the
message path, say in the card or stack script). You need a graphic
(rectangular for convenience) called "DistHistoBox" for the plot to
be put into, and a graphic (any type, but I used a line) called
"DistHistoLine" to become the curve. Make sure the histo box is
behind the histo line, or that it is not opaque. Put a text box at
either end of the histo box to hold the scale extreme values and call
them "DistMin" and "DistMax" as appropriate. You then need two
scrollbars called "mean" and "stdev". Make sure the stdev scrollbar
is not set to zero!
You have to name the objects correctly only because I referred to
those names in the scripts.
I could send you a stack if you need it, but it would probably be
better if you reconstructed it yourself...
>
>When you say insert a graph, would that be a pre-drawn graph of a
>curve I put in? Sorry if these questions sound too basic.
I'm not sure about this question, although I would say that nothing
is too basic if you need to ask it. Are you referring to a comment in
someone else's response? Perhaps you could include in your posts some
judiciously chosen quoted snippets from the previous posts.
Regards
--
Michael J. Lew
Senior Lecturer
Department of Pharmacology
The University of Melbourne
Parkville 3010
Victoria
Australia
Phone +613 8344 8304
**
New email address: michaell at unimelb.edu.au
**
More information about the use-livecode
mailing list