plot

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

plot

wernerk
hi,
what can i use to plot a collection of numbers?
werner

Reply | Threaded
Open this post in threaded view
|

Re: plot

Stéphane Ducasse

On Feb 21, 2011, at 4:04 PM, Werner Kassens wrote:

> hi,
> what can i use to plot a collection of numbers?

you have MorphPlot probably on squeaksource.

> werner
>


Reply | Threaded
Open this post in threaded view
|

Re: plot

simondenier
In reply to this post by wernerk

On 21 févr. 2011, at 16:04, Werner Kassens wrote:

> hi,
> what can i use to plot a collection of numbers?
> werner
>


You could use Mondrian. It's built primarily for graph drawing, but there is a MOScatterplotLayout which allows one to draw plots.

http://www.moosetechnology.org/tools/mondrian


Just a simple example (do not hesitate to ask for clarification)

points := OrderedCollection new.
{5. 5. 3. 10. 15. 8} pairsDo: [ :x :y | points add: (Point x: x y: y) ].

MOViewRenderer new
        nodes: points;
        layout: (MOScatterplotLayout new
                                x: #x;
                                y: #y);
        open


Or you could help porting EyeSee from visualworks :)
http://www.moosetechnology.org/tools/vw/eyesee


--
Simon Denier




Reply | Threaded
Open this post in threaded view
|

Re: plot

wernerk
Simon,
thank you for that information. while i was looking more for something
like a line diagram, your answer helps.
werner

Reply | Threaded
Open this post in threaded view
|

Re: plot

wernerk
In reply to this post by Stéphane Ducasse
> you have MorphPlot probably on squeaksource.

hi Stéphane,
that does indeed what i wanted to do, thanks. btw it was not too easy
<grin> to find, but using PlotMorph instead of MorphPlot did finally do
the trick.
thanks again
werner



Reply | Threaded
Open this post in threaded view
|

Re: plot

Stéphane Ducasse
:)

I always have problem with left and right :)

Stef


>> you have MorphPlot probably on squeaksource.
>
> hi Stéphane,
> that does indeed what i wanted to do, thanks. btw it was not too easy <grin> to find, but using PlotMorph instead of MorphPlot did finally do the trick.
> thanks again
> werner