How to use PlotMorph?

Kwiyi Woo kwiyi at hotmail.com
Mon Feb 2 23:11:25 UTC 2004


Hi,
I got the idea and successfully created my own graph. Thanks.
But now I am trying to remove the grid on the Axis coordinators. In other 
words, I only want to keep the X and Y axis without having others grid on 
the background. Is there any attribute I can turn off.
>From the testXX example, I failed to figure it out.

Thanks.


>From: Raymond Asselin <raymondasselin at sympatico.ca>
>Reply-To: The general-purpose Squeak developers 
>list<squeak-dev at lists.squeakfoundation.org>
>To: The general-purpose Squeak developers 
>list<squeak-dev at lists.squeakfoundation.org>
>Subject: Re: How to use PlotMorph?
>Date: Mon,  2 Feb 2004 17:33:57 -0500
>
>The 2004/02/02, Kwiyi Woo <kwiyi at hotmail.com> wrote :
>
> >Also I don't
> >know how to plot a curve at specified function. Could anyone give me
>some
> >suggestion for it?
>
>Hi Kwiyi,   surprisingly I was looking at PlotMorph this weekend.  I
>also found the explanations limited.
>
>What I have found (in the test4) is this:
>
>³   function := [:x | x degreesToRadians sin / 5 + ((x / 10)
>degreesToRadians cos + (x / 10) degreesToRadians sin) * 100].
>     0
>         to: 3000
>         by: 5
>         do: [:x | pm series: #test2 addPoint: x
>                     @ (function value: x)].
>     pm openInWorld  ³
>
>-   where a mathematical function is defined within a  bloc Π[ :x | x
>blabla....]¹  and assigned to the variable Œfunction¹, to be used in the
>loop below where  the Œy¹ value of a point is compute with that
>Œfunction¹ .  So is you change the mathematical function in that bloc
>you¹ll have the result you are looking for.
>
>Hope this help.
>Ray
>

_________________________________________________________________
What are the 5 hot job markets for 2004? Click here to find out. 
http://msn.careerbuilder.com/Custom/MSN/CareerAdvice/WPI_WhereWillWeFindJobsIn2004.htm?siteid=CBMSN3006&sc_extcmp=JS_wi08_dec03_hotmail1




More information about the Squeak-dev mailing list