# Generating "real-time" 2D line plots in Windows 2k?

**URL:** <https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180>\
**Category:** ruby-talk\
**Created:** [17 June 2004 23:13 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180 "2004-06-17T23:13:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_Gardner](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Todd\_Gardner](https://rubytalk.org/u/Todd_Gardner)\
**Post date:** [17 June 2004 23:13 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/1 "2004-06-17T23:13:27Z")

</div>

Hello everyone,

I need to use the voice dictation software Dragon NaturallySpeaking  
for Windows 2000. I have not yet found a reasonable Linux  
alternative.

I need to create and display "real-time" 2D line plots from within my  
Ruby application.

I cannot figure out how to make a real-time plots SVG::Graph  
[http://www.germane-software.com/software/SVG/SVG::Graph/doc/](http://www.germane-software.com/software/SVG/SVG::Graph/doc/) in my  
Ruby application.

I cannot figure out how to install ROOT [http://root.cern.ch/](http://root.cern.ch/) on  
Windows 2000 and it seems to be way too comprehensive of a package.

I have been unable to successfully install RMagick  
[http://studio.imagemagick.org/RMagick/doc/](http://studio.imagemagick.org/RMagick/doc/) on Windows 2000.

The R-Project [http://www.r-project.org/](http://www.r-project.org/) seems to be only for  
statistical computing but I haven't seen how to install that on  
Windows 2000 either.

I cannot figure out how to install the Ruby Graph Library (RGL)  
[http://www.hduchene.de/ruby/rgl/doc/](http://www.hduchene.de/ruby/rgl/doc/) on Windows 2000.

I cannot figure out how to install the ruby-libplot  
[http://www2s.biglobe.ne.jp/~Nori/ruby/](http://www2s.biglobe.ne.jp/~Nori/ruby/) on Windows 2000.\

This is just a small sampling of what I have tried.

I am up for any suggestions and it will be greatly appreciated!

Domo Arigato,

Todd

---

<div class="post-metadata">

**Author:** ![Rich1](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rich1](https://rubytalk.org/u/Rich1)\
**Post date:** [17 June 2004 23:43 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/2 "2004-06-17T23:43:53Z")

</div>

Have you tried the FXCanvas in FXRuby?

I have no idea if you'll get it to do what you need

If that gives you problems, it's not hard at all to draw lines in the  
FXGLCanvas, it would just seem like overkill to draw a 2d graph in OpenGL.

FXRuby comes standard in the one-click prag-prog installer for Windows.

-Richard

> **···**
>
> ----- Original Message -----  
> From: "Todd Gardner" \<piir@earthlink.net\>  
> Newsgroups: comp.lang.ruby  
> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> Sent: Thursday, June 17, 2004 5:13 PM  
> Subject: Generating "real-time" 2D line plots in Windows 2k?
> 
> > Hello everyone,
> > 
> > I need to use the voice dictation software Dragon NaturallySpeaking  
> > for Windows 2000. I have not yet found a reasonable Linux  
> > alternative.
> > 
> > I need to create and display "real-time" 2D line plots from within my  
> > Ruby application.
> > 
> > I cannot figure out how to make a real-time plots SVG::Graph  
> > [RDoc Documentation](http://www.germane-software.com/software/SVG/SVG::Graph/doc/) in my  
> > Ruby application.
> > 
> > I cannot figure out how to install ROOT [http://root.cern.ch/](http://root.cern.ch/) on  
> > Windows 2000 and it seems to be way too comprehensive of a package.
> > 
> > I have been unable to successfully install RMagick  
> > [http://studio.imagemagick.org/RMagick/doc/](http://studio.imagemagick.org/RMagick/doc/) on Windows 2000.
> > 
> > The R-Project [http://www.r-project.org/](http://www.r-project.org/) seems to be only for  
> > statistical computing but I haven't seen how to install that on  
> > Windows 2000 either.
> > 
> > I cannot figure out how to install the Ruby Graph Library (RGL)  
> > [http://www.hduchene.de/ruby/rgl/doc/](http://www.hduchene.de/ruby/rgl/doc/) on Windows 2000.
> > 
> > I cannot figure out how to install the ruby-libplot  
> > [ruby as glue language](http://www2s.biglobe.ne.jp/~Nori/ruby/) on Windows 2000.\
> > 
> > This is just a small sampling of what I have tried.
> > 
> > I am up for any suggestions and it will be greatly appreciated!
> > 
> > Domo Arigato,
> > 
> > Todd

---

<div class="post-metadata">

**Author:** ![Tim\_Bates](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@Tim\_Bates](https://rubytalk.org/u/Tim_Bates)\
**Post date:** [17 June 2004 23:53 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/3 "2004-06-17T23:53:05Z")

</div>

Todd Gardner wrote:

> I need to use the voice dictation software Dragon NaturallySpeaking  
> for Windows 2000. I have not yet found a reasonable Linux  
> alternative.

Heh. Pre-emptively fending off the "switch to Linux!" calls. I like it.

> I need to create and display "real-time" 2D line plots from within my  
> Ruby application.

Although I haven't used it with Windows, I'm assured that the Simple Directmedia Layer (SDL) is quite portable, and its Ruby bindings in the form of RUDL are very good.

Tim.

> **···**
>
> --  
> Tim Bates  
> tim@bates.id.au

---

<div class="post-metadata">

**Author:** ![Rich1](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rich1](https://rubytalk.org/u/Rich1)\
**Post date:** [18 June 2004 13:10 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/4 "2004-06-18T13:10:19Z")

</div>

Here's code that generates a 'real-time' 2d pseudo bar chart (it wouldn't be  
that hard to generate a line graph instead).

[http://lithinos.com/fxruby\_tutorials/moving\_graph\_short.html](http://lithinos.com/fxruby_tutorials/moving_graph_short.html)

I could show you how to package it so that it acted like a standalone  
Windows 2000 EXE if you wanted.

-Richard

> **···**
>
> ----- Original Message -----  
> From: "Todd Gardner" \<piir@earthlink.net\>  
> Newsgroups: comp.lang.ruby  
> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> Sent: Thursday, June 17, 2004 5:13 PM  
> Subject: Generating "real-time" 2D line plots in Windows 2k?
> 
> > Hello everyone,
> > 
> > I need to use the voice dictation software Dragon NaturallySpeaking  
> > for Windows 2000. I have not yet found a reasonable Linux  
> > alternative.
> > 
> > I need to create and display "real-time" 2D line plots from within my  
> > Ruby application.
> > 
> > I cannot figure out how to make a real-time plots SVG::Graph  
> > [RDoc Documentation](http://www.germane-software.com/software/SVG/SVG::Graph/doc/) in my  
> > Ruby application.
> > 
> > I cannot figure out how to install ROOT [http://root.cern.ch/](http://root.cern.ch/) on  
> > Windows 2000 and it seems to be way too comprehensive of a package.
> > 
> > I have been unable to successfully install RMagick  
> > [http://studio.imagemagick.org/RMagick/doc/](http://studio.imagemagick.org/RMagick/doc/) on Windows 2000.
> > 
> > The R-Project [http://www.r-project.org/](http://www.r-project.org/) seems to be only for  
> > statistical computing but I haven't seen how to install that on  
> > Windows 2000 either.
> > 
> > I cannot figure out how to install the Ruby Graph Library (RGL)  
> > [http://www.hduchene.de/ruby/rgl/doc/](http://www.hduchene.de/ruby/rgl/doc/) on Windows 2000.
> > 
> > I cannot figure out how to install the ruby-libplot  
> > [ruby as glue language](http://www2s.biglobe.ne.jp/~Nori/ruby/) on Windows 2000.\
> > 
> > This is just a small sampling of what I have tried.
> > 
> > I am up for any suggestions and it will be greatly appreciated!
> > 
> > Domo Arigato,
> > 
> > Todd

---

<div class="post-metadata">

**Author:** ![David\_Ross](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@David\_Ross](https://rubytalk.org/u/David_Ross)\
**Post date:** [18 June 2004 00:14 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/5 "2004-06-18T00:14:29Z")

</div>

IBM ViaVoice for Linux is pretty good. Haven't used it in a long time. I think  
its IBM VisVoice.. came with Mandrake package. --David Ross

> **···**
>
> On Thursday 17 June 2004 07:53 pm, Tim Bates wrote:
> 
> > Todd Gardner wrote:  
> > \> I need to use the voice dictation software Dragon NaturallySpeaking  
> > \> for Windows 2000. I have not yet found a reasonable Linux  
> > \> alternative.
> 
> --------------------------------------------  
> //Honeypot address - send on spammers 🙂  
> hp@code-exec.net

---

<div class="post-metadata">

**Author:** ![Todd\_Gardner](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Todd\_Gardner](https://rubytalk.org/u/Todd_Gardner)\
**Post date:** [19 June 2004 01:23 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/6 "2004-06-19T01:23:20Z")

</div>

Rich \<rich@lithinos.com\> wrote in message news:\<000601c45535$e187d660$f8df070a@stone\>...

> Here's code that generates a 'real-time' 2d pseudo bar chart (it wouldn't be  
> that hard to generate a line graph instead).
> 
> [http://lithinos.com/fxruby\_tutorials/moving\_graph\_short.html](http://lithinos.com/fxruby_tutorials/moving_graph_short.html)
> 
> I could show you how to package it so that it acted like a standalone  
> Windows 2000 EXE if you wanted.
> 
> -Richard
> 
> From: "Todd Gardner" \<piir@earthlink.net\>  
> Newsgroups: comp.lang.ruby  
> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> Sent: Thursday, June 17, 2004 5:13 PM  
> Subject: Generating "real-time" 2D line plots in Windows 2k?
> 
> \> Hello everyone,  
> \>  
> \> I need to use the voice dictation software Dragon NaturallySpeaking  
> \> for Windows 2000. I have not yet found a reasonable Linux  
> \> alternative.  
> \>  
> \> I need to create and display "real-time" 2D line plots from within my  
> \> Ruby application.  
> \>  
> \> I cannot figure out how to make a real-time plots SVG::Graph  
> \> [RDoc Documentation](http://www.germane-software.com/software/SVG/SVG::Graph/doc/) in my  
> \> Ruby application.  
> \>  
> \> I cannot figure out how to install ROOT [http://root.cern.ch/](http://root.cern.ch/) on  
> \> Windows 2000 and it seems to be way too comprehensive of a package.  
> \>  
> \> I have been unable to successfully install RMagick  
> \> [http://studio.imagemagick.org/RMagick/doc/](http://studio.imagemagick.org/RMagick/doc/) on Windows 2000.  
> \>  
> \> The R-Project [http://www.r-project.org/](http://www.r-project.org/) seems to be only for  
> \> statistical computing but I haven't seen how to install that on  
> \> Windows 2000 either.  
> \>  
> \> I cannot figure out how to install the Ruby Graph Library (RGL)  
> \> [http://www.hduchene.de/ruby/rgl/doc/](http://www.hduchene.de/ruby/rgl/doc/) on Windows 2000.  
> \>  
> \> I cannot figure out how to install the ruby-libplot  
> \> [ruby as glue language](http://www2s.biglobe.ne.jp/~Nori/ruby/) on Windows 2000.\  
> \>  
> \> This is just a small sampling of what I have tried.  
> \>  
> \> I am up for any suggestions and it will be greatly appreciated!  
> \>  
> \> Domo Arigato,  
> \>  
> \> Todd  
> \>

Hello Richard,

I first must apologize. I am using the voice dictation software  
Dragon NaturallySpeaking are Windows 2000 and it sometimes gets things  
correct however, sometimes when it messes up messes up big-time and I  
just don't notice all of the completely erroneous words.

I am unable to access [http://lithinos.com/](http://lithinos.com/) so the subsequent link does  
not work.

I had downloaded fox-1.2.4 but I am unsure how to use it with Windows.  
Would you mind getting this newbie pointers so that I can get this  
installed properly?

Also, I would really appreciate it if you show me how to build that  
example to an executable.

Any ideas would be greatly appreciated,

Thank you,

Todd

> **···**
>
> > ----- Original Message -----

---

<div class="post-metadata">

**Author:** ![Rich1](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rich1](https://rubytalk.org/u/Rich1)\
**Post date:** [19 June 2004 04:23 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/7 "2004-06-19T04:23:07Z")

</div>

> I first must apologize. I am using the voice dictation software

Don't worry.

> Dragon NaturallySpeaking are Windows 2000 and it sometimes gets things  
> correct however, sometimes when it messes up messes up big-time and I  
> just don't notice all of the completely erroneous words.

lol - I mess up and I'm typing!!

> I am unable to access [http://lithinos.com/](http://lithinos.com/) so the subsequent link does  
> not work.

Yeah - it's not the greatest hosting company... lots of downtime.

> I had downloaded fox-1.2.4 but I am unsure how to use it with Windows.  
> Would you mind getting this newbie pointers so that I can get this  
> installed properly?

I wouldn't do it that way. I'd get the one-click installer - it has  
everything you'll need for FOX and FXRuby.

The one-click installer is at:

[http://rubyforge.org/frs/?group\_id=167](http://rubyforge.org/frs/?group_id=167)

Download that, and run it to get everything setup.

After you have that going, just save the following code into a file (".rb")  
and double-click it.

START CODE  
require 'fox'  
include Fox

@appRef=FXApp.new  
@mainwin=FXMainWindow.new(@appRef,"Moving  
Graph",nil,nil,LAYOUT\_FIX\_HEIGHT|LAYOUT\_FIX\_WIDTH|DECOR\_ALL)  
@mainwin.x=@mainwin.y=200  
@mainwin.width=300  
@mainwin.height=300  
def paint(n,l,d)  
&nbsp;&nbsp;&nbsp;if(@first.nil?)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@repaint\_n=n  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@repaint\_l=l  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@repaint\_d=d  
&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;FXDCWindow.new(@canvas, d) do |dc|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.foreground = @canvas.backColor  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.fillRectangle(d.rect.x, d.rect.y, d.rect.w, d.rect.h)  
&nbsp;&nbsp;&nbsp;end  
end  
def clear\_canvas  
&nbsp;&nbsp;&nbsp;FXDCWindow.new(@canvas) do |dc|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.foreground = @canvas.backColor  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.fillRectangle(0, 0, @canvas.width, @canvas.height)  
&nbsp;&nbsp;&nbsp;end  
end  
def draw\_graph  
&nbsp;&nbsp;&nbsp;clear\_canvas  
&nbsp;&nbsp;&nbsp;FXDCWindow.new(@canvas) do |dc|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.foreground=FXRGB(115,0,0)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x=0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points.each{|i|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;h=@canvas.height  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dc.drawLine(x,h,x,h-i)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x+=1  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;&nbsp;end  
end  
def create\_next\_value(n,l,d)  
&nbsp;&nbsp;&nbsp;if(!@firstTime.nil?)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.times do  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@show\_next\_value.text=@points.last.to\_s  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sleep(1)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points.shift  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l=@points.last  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(rand(10)\>=5)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=l+rand(10)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=200 if new\_value\>200  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=25 if new\_value\<0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points \<\< new\_value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=l-rand(10)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=200 if new\_value\>200  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=25 if new\_value\<0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points \<\< new\_value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;else  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@firstTime=true  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(@canvas.width-2).times do |i|  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l=@points.last  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(rand(10)\>=5)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=l+rand(10)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=200 if new\_value\>200  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=25 if new\_value\<0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points \<\< new\_value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=l-rand(10)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=200 if new\_value\>200  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new\_value=25 if new\_value\<0  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@points \<\< new\_value  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;end  
&nbsp;&nbsp;&nbsp;draw\_graph  
&nbsp;&nbsp;&nbsp;@appRef.addTimeout(1, method(:create\_next\_value))  
end  
@show\_next\_value=FXTextField.new(@mainwin,20,nil,0,LAYOUT\_FILL\_X|TEXTFIELD\_N  
ORMAL)  
@canvas=FXCanvas.new(@mainwin,nil,0,FRAME\_NORMAL|LAYOUT\_FILL\_X|LAYOUT\_FILL\_Y  
)  
@canvas.connect(SEL\_PAINT,method(:paint))  
@points=[100]

@appRef.addTimeout(1, method(:create\_next\_value))

@appRef.create  
@mainwin.show(PLACEMENT\_SCREEN)  
@appRef.run  
END CODE

That's just an example that I whipped up for you. You'll probably want to do  
a bit more with your GUI.

> Also, I would really appreciate it if you show me how to build that  
> example to an executable.

After we get the above stuff working, I'd be happy to walk you through it -  
it's super easy.

Remember though - you're not really 'building' it into an executable...  
you're packaging the Ruby source file with the Ruby interpreter and FOX  
library, and distributing everything in a single file with an EXE extension  
that can be double-clicked to run.

It will look and function the same as a 'compiled' or 'built' EXE, but it  
isn't really...

> Any ideas would be greatly appreciated,
> 
> Thank you,
> 
> Todd

Not a problem!

-Richard

> **···**
>
> ----- Original Message -----  
> From: "Todd Gardner" \<piir@earthlink.net\>  
> Newsgroups: comp.lang.ruby  
> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> Sent: Friday, June 18, 2004 7:23 PM  
> Subject: Re: Generating "real-time" 2D line plots in Windows 2k?

---

<div class="post-metadata">

**Author:** ![Todd\_Gardner](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@Todd\_Gardner](https://rubytalk.org/u/Todd_Gardner)\
**Post date:** [19 June 2004 06:53 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/8 "2004-06-19T06:53:19Z")

</div>

piir@earthlink.net (Todd Gardner) wrote in message news:\<9b849915.0406181720.101c3252@posting.google.com\>...

> Rich \<rich@lithinos.com\> wrote in message news:\<000601c45535$e187d660$f8df070a@stone\>...  
> \> Here's code that generates a 'real-time' 2d pseudo bar chart (it wouldn't be  
> \> that hard to generate a line graph instead).  
> \>  
> \> [http://lithinos.com/fxruby\_tutorials/moving\_graph\_short.html](http://lithinos.com/fxruby_tutorials/moving_graph_short.html)  
> \>  
> \> I could show you how to package it so that it acted like a standalone  
> \> Windows 2000 EXE if you wanted.  
> \>  
> \> -Richard  
> \>  
> \>  
> \> From: "Todd Gardner" \<piir@earthlink.net\>  
> \> Newsgroups: comp.lang.ruby  
> \> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> \> Sent: Thursday, June 17, 2004 5:13 PM  
> \> Subject: Generating "real-time" 2D line plots in Windows 2k?  
> \>  
> \> \> Hello everyone,  
> \> \>  
> \> \> I need to use the voice dictation software Dragon NaturallySpeaking  
> \> \> for Windows 2000. I have not yet found a reasonable Linux  
> \> \> alternative.  
> \> \>  
> \> \> I need to create and display "real-time" 2D line plots from within my  
> \> \> Ruby application.  
> \> \>  
> \> \> I cannot figure out how to make a real-time plots SVG::Graph  
> \> \> [RDoc Documentation](http://www.germane-software.com/software/SVG/SVG::Graph/doc/) in my  
> \> \> Ruby application.  
> \> \>  
> \> \> I cannot figure out how to install ROOT [http://root.cern.ch/](http://root.cern.ch/) on  
> \> \> Windows 2000 and it seems to be way too comprehensive of a package.

Hello Richard,

WOW! Thanks your code I am finally able to create and display a graph  
close to what I would like in Windows 2000! I am very interested in  
seeing how to distribute this as an executable. I have been trying to  
use rubyscript2exe-0.1.15.rb however, unsuccessfully.

Any comments would be greatly appreciated!

Thank you,

Todd

> **···**
>
> > \> ----- Original Message -----

---

<div class="post-metadata">

**Author:** ![Rich1](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rich1](https://rubytalk.org/u/Rich1)\
**Post date:** [27 June 2004 01:44 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/9 "2004-06-27T01:44:13Z")

</div>

I really like the fact that you didn't push Ruby.

I really like being a member of a community where others involved are  
sensible.

Thank you.

-Rich  
P.s. -  
[http://www.onlamp.com/pub/a/onlamp/2004/06/24/pragmatic\_programmers.html](http://www.onlamp.com/pub/a/onlamp/2004/06/24/pragmatic_programmers.html)

---

<div class="post-metadata">

**Author:** ![Rich1](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@Rich1](https://rubytalk.org/u/Rich1)\
**Post date:** [19 June 2004 14:41 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/10 "2004-06-19T14:41:07Z")

</div>

> Hello Richard,
> 
> WOW! Thanks your code I am finally able to create and display a graph  
> close to what I would like in Windows 2000! I am very interested in  
> seeing how to distribute this as an executable. I have been trying to  
> use rubyscript2exe-0.1.15.rb however, unsuccessfully.

Download and install Exerb. I think it's at:

[http://raa.ruby-lang.org/project/exerb/](http://raa.ruby-lang.org/project/exerb/)

... installation is super simple - just follow the README.en.rd file

After that, you'll want to get EZExerb (a GUI I made for exerb).

The link to download that should be:

[http://raa.ruby-lang.org/project/ezexerb/](http://raa.ruby-lang.org/project/ezexerb/)

It's an installer for a packaged EXE that helps you in packaging other Ruby  
scripts.

Let me know if you have any other questions.

-Richard

> **···**
>
> ----- Original Message -----  
> From: "Todd Gardner" \<piir@earthlink.net\>  
> Newsgroups: comp.lang.ruby  
> To: "ruby-talk ML" \<ruby-talk@ruby-lang.org\>  
> Sent: Saturday, June 19, 2004 12:53 AM  
> Subject: Re: Generating "real-time" 2D line plots in Windows 2k?

---

<div class="post-metadata">

**Author:** ![Lothar\_Scholz2](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Lothar\_Scholz2](https://rubytalk.org/u/Lothar_Scholz2)\
**Post date:** [27 June 2004 11:49 UTC](https://rubytalk.org/t/generating-real-time-2d-line-plots-in-windows-2k/12180/11 "2004-06-27T11:49:46Z")

</div>

Hello Rich,

> I really like the fact that you didn't push Ruby.

But maybe mentioning Ruby at least once would be nice.  
The word "Ruby" was only used by the interviewer, not by Dave or Andy.

> **···**
>
> --  
> Best regards, emailto: scholz at scriptolutions dot com  
> Lothar Scholz [http://www.ruby-ide.com](http://www.ruby-ide.com)  
> CTO Scriptolutions Ruby, PHP, Python IDE 's
