Floating Point Graph?

Bob Arning arning at charm.net
Thu Jun 22 14:30:15 UTC 2000


On Thu, 22 Jun 2000 09:44:11 -0400 Bolot Kerimbaev <bolot at cc.gatech.edu> wrote:
>Assuming you need a linear graph, look at:
>
>PolygonMorph class>>vertices:color:borderWidth:borderColor:
>
>e.g.
>
>(PolygonMorph vertices: {100 at 100. 150 at 120. 200 at 90}
>        color: Color black borderWidth: 2 borderColor: Color black)
>    makeOpen;
>    addHandles;
>    openInWorld
>
>Bolot
>
>
>On Wed, Jun 21, 2000 at 10:58:07PM -0700, Bob McCrory wrote:
>> I would like to create a graph of an array of floating point numbers.  I assume there is some simple way to do this in Morphic, but I can't find an example.  Can anyone help me out with a suggestion?
>> 
>> Thanks.
>> 
>> Bob

Bob,	(have you been assigned your Bob number yet? ;-) )

Try this:

GraphMorph new openInWorld data: ((0 to: Float pi * 6 by: 0.05) collect: [ :x | x sin])

Cheers,
Bob





More information about the Squeak-dev mailing list