Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Plotting charts on Rebol View?

From: carl:cybercraft at: 27-Nov-2001 17:56

On 27-Nov-01, James Marsden wrote:
> Hi there, > Desktop / docs / Easy Draw demo covers how to build any of those > sort of graphs by using the draw dialect.
An alternative way, if it's just pixel-plotting you want, is to 'poke directly to an image. Example... rebol [] plot: func [image x y color][ x: to-integer x + .5 y: to-integer y + .5 poke image y * image/size/1 + x color ] pic: to-image 200x200 y: 50 for x 0 199 1 [ plot pic x y red y: y + .5 ] view layout [image pic] I could've used a pair for the xy values, but it seemed simplier not to.
> James. > ----- Original Message ----- > From: "Lok Yek Soon" <[slok00--yahoo--com]> > To: <[rebol-list--rebol--com]> > Sent: Tuesday, November 27, 2001 4:09 PM > Subject: [REBOL] Plotting charts on Rebol View? >> Is it possible to plot charts on Rebol View? >> A client has approached me to build a system, of >> which, >> one of the requirements is to extract data and plot a >> chart (much like those you see for stock markets). >> I have seen IOS having a reblet called Plotter, but >> there >> is no further screen shot nor do I recall anyone doing >> similiar stuffs on the list. >> Any suggestion is appreciated. >> Thanks >> Yek Soon
-- Carl Read