[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Is there a Ruby utility for graphing?

Victor Reyes

12/10/2007 4:13:00 PM

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

Hello Team,

I was looking for an existent Ruby utility to plot a graph with given input.
I had not use any of the Ruby GUI available but perhaps someone knows or
have developed a tool to graph some values.
The tool needs to run under AIX (IBM Version of UNIX).

This is what the input will be:

TimeStamp Server Function R/T(MS)

Where:

TimeStamp: No need for explanation here.
Server: This will always be a two digits number.
Function: This will be a string.
R/T(MS): This will a a response time given in milliseconds.

Any help will be appreciated!

Thank you

Victor

12 Answers

mike.s.mckinney

12/10/2007 4:17:00 PM

0

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

You mean something like this:
http://nubyonrails.com/p...

On Dec 10, 2007 11:12 AM, Victor Reyes <victor.reyes@gmail.com> wrote:

> Hello Team,
>
> I was looking for an existent Ruby utility to plot a graph with given
> input.
> I had not use any of the Ruby GUI available but perhaps someone knows or
> have developed a tool to graph some values.
> The tool needs to run under AIX (IBM Version of UNIX).
>
> This is what the input will be:
>
> TimeStamp Server Function R/T(MS)
>
> Where:
>
> TimeStamp: No need for explanation here.
> Server: This will always be a two digits number.
> Function: This will be a string.
> R/T(MS): This will a a response time given in milliseconds.
>
> Any help will be appreciated!
>
> Thank you
>
> Victor
>

SunRaySon

12/10/2007 4:18:00 PM

0

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

If you are not looking for interactive graphs then you could try graphviz or
imagemagik libraries.

Kiran.

On Dec 10, 2007 9:42 PM, Victor Reyes <victor.reyes@gmail.com> wrote:

> Hello Team,
>
> I was looking for an existent Ruby utility to plot a graph with given
> input.
> I had not use any of the Ruby GUI available but perhaps someone knows or
> have developed a tool to graph some values.
> The tool needs to run under AIX (IBM Version of UNIX).
>
> This is what the input will be:
>
> TimeStamp Server Function R/T(MS)
>
> Where:
>
> TimeStamp: No need for explanation here.
> Server: This will always be a two digits number.
> Function: This will be a string.
> R/T(MS): This will a a response time given in milliseconds.
>
> Any help will be appreciated!
>
> Thank you
>
> Victor
>

Suraj Kurapati

12/10/2007 7:45:00 PM

0

Victor Reyes wrote:
> TimeStamp: No need for explanation here.
> Server: This will always be a two digits number.
> Function: This will be a string.
> R/T(MS): This will a a response time given in milliseconds.

Looks like a standard time-series graph to me.

Try 'eplot' (easy gnuplot) which is a Ruby wrapper around gnuplot:
http://liris.cnrs.fr/christian.wolf/software/eplot/...

For more options see:
http://raa.ruby-lang.org/search.rhtml?se...

There was also a Ruby project (I think it was based on ruby-gnuplot)
that generated the most *dazzling* LaTeX/EPS graphs I ever saw. It was
written by a University professor, but I cannot remember its name... it
was "topika" or "to*" or "ika" or something. Googling around turned up
nothing. It had very nice RDoc documentation and lots of examples.
Argh, why can't I remember?

Does anyone on this list know?
--
Posted via http://www.ruby-....

Stanislav Sedov

12/10/2007 8:22:00 PM

0

On Tue, Dec 11, 2007 at 04:44:30AM +0900 Suraj Kurapati mentioned:
>
> There was also a Ruby project (I think it was based on ruby-gnuplot)
> that generated the most *dazzling* LaTeX/EPS graphs I ever saw. It was
> written by a University professor, but I cannot remember its name... it
> was "topika" or "to*" or "ika" or something. Googling around turned up
> nothing. It had very nice RDoc documentation and lots of examples.
> Argh, why can't I remember?
>
> Does anyone on this list know?

Tioga?

http://www.kitp.ucsb.edu/~paxton/...

--
Stanislav Sedov
ST4096-RIPE

Ara.T.Howard

12/10/2007 8:39:00 PM

0


On Dec 10, 2007, at 12:44 PM, Suraj Kurapati wrote:

> There was also a Ruby project (I think it was based on ruby-gnuplot)
> that generated the most *dazzling* LaTeX/EPS graphs I ever saw. It
> was
> written by a University professor, but I cannot remember its
> name... it
> was "topika" or "to*" or "ika" or something. Googling around
> turned up
> nothing. It had very nice RDoc documentation and lots of examples.
> Argh, why can't I remember?
>
> Does anyone on this list know?

tioga

http://www.kitp.ucsb.edu/~paxton/...
http://rubyforge.org/proje...

the ui is a bit complex - but the graphics are absolutely stunning
alright.

a @ http://codeforp...
--
it is not enough to be compassionate. you must act.
h.h. the 14th dalai lama




Edwin van Leeuwen

12/10/2007 8:54:00 PM

0

Suraj Kurapati wrote:
> Victor Reyes wrote:
>> TimeStamp: No need for explanation here.
>> Server: This will always be a two digits number.
>> Function: This will be a string.
>> R/T(MS): This will a a response time given in milliseconds.
>
> Looks like a standard time-series graph to me.
>
> Try 'eplot' (easy gnuplot) which is a Ruby wrapper around gnuplot:
> http://liris.cnrs.fr/christian.wolf/software/eplot/...
>
> For more options see:
> http://raa.ruby-lang.org/search.rhtml?se...
>
> There was also a Ruby project (I think it was based on ruby-gnuplot)
> that generated the most *dazzling* LaTeX/EPS graphs I ever saw. It was
> written by a University professor, but I cannot remember its name... it
> was "topika" or "to*" or "ika" or something. Googling around turned up
> nothing. It had very nice RDoc documentation and lots of examples.
> Argh, why can't I remember?

Tioga

http://www.kitp.ucsb.edu/~paxton/...

It produces pdf figures, I use it to create final figures for
publication. For quick graphs I use rgplot (gnuplot bindings) for quick
figures.
http://rgplot.ruby...

--
Posted via http://www.ruby-....

Giles Bowkett

12/10/2007 8:59:00 PM

0

Seems like there are so many options a survey of available options
would be valuable.

--
Giles Bowkett

Podcast: http://hollywoodgrit.bl...
Blog: http://gilesbowkett.bl...
Portfolio: http://www.gilesg...
Tumblelog: http://giles....

Suraj Kurapati

12/10/2007 9:22:00 PM

0

Edwin Van leeuwen wrote:
> Suraj Kurapati wrote:
>> There was also a Ruby project (I think it was based on ruby-gnuplot)
>> that generated the most *dazzling* LaTeX/EPS graphs I ever saw. It was
>> written by a University professor, but I cannot remember its name...
>
> Tioga
>
> http://www.kitp.ucsb.edu/~paxton/...
>
> It produces pdf figures, I use it to create final figures for
> publication.

Thank you! Tioga was exactly the project I was thinking of. :-)
--
Posted via http://www.ruby-....

Victor Reyes

12/10/2007 9:24:00 PM

0

Note: parts of this message were removed by the gateway to make it a legal Usenet post.

Hello Team,

First, thanks to everyone for the many suggestions made.

I looked at Tioga but the documentation states "You'll need to be using
either Mac OS X or Linux." since I am running under AIX that's out of the
question.

I need to display a graph and refresh it at some interval.

I tried building the *gnuplot 4.2.2 *but it failed during the make phase
with the errors listed below.
I will need to look at the other suggestions made. For example RMAGick,
although I am not sure if it works under AIX.
If anyone had any experience with any of these tools under AIX, I will
appreciate if you let me know. That way I can cut some corners and time.

Thank you all

*/gnuplot-4.2.2>make *
make all-recursive
Making all in config
Target "all" is up to date.
Making all in m4
Target "all" is up to date.
Making all in term
Target "all" is up to date.
Making all in src
Making all in wxterminal
Target "all" is up to date.
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
alloc.o -MD -MP -MF ".deps/alloc.Tpo" -c -o alloc.o alloc.c; then mv -f
".deps/alloc.Tpo" ".deps/alloc.Po"; else rm -f ".deps/alloc.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
axis.o-MD -MP -MF ".deps/axis.Tpo" -c -o
axis.o axis.c; then mv -f ".deps/axis.Tpo" ".deps/axis.Po"; else rm -f
".deps/axis.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
breaders.o -MD -MP -MF ".deps/breaders.Tpo" -c -o breaders.o breaders.c;
then mv -f ".deps/breaders.Tpo" ".deps/breaders.Po"; else rm -f
".deps/breaders.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
bitmap.o -MD -MP -MF ".deps/bitmap.Tpo" -c -o bitmap.o bitmap.c; then mv -f
".deps/bitmap.Tpo" ".deps/bitmap.Po"; else rm -f ".deps/bitmap.Tpo"; exit 1;
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
color.o -MD -MP -MF ".deps/color.Tpo" -c -o color.o color.c; then mv -f
".deps/color.Tpo" ".deps/color.Po"; else rm -f ".deps/color.Tpo"; exit 1; fi
color.c: In function 'draw_color_smooth_box':
color.c:535: warning: pointer targets in passing argument 2 of
'map3d_position_r' differ in signedness
color.c:535: warning: pointer targets in passing argument 3 of
'map3d_position_r' differ in signedness
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../term -I../term
-DBINDIR=\"/usr/local/bin\"
-DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.2\"
-DGNUPLOT_PS_DIR=\"/usr/local/share/gnuplot/4.2/PostScript\" -DCONTACT=\"
http://sourceforge.net/projec...\"
-DHELPFILE=\"/usr/local/share/gnuplot/4.2/gnuplot.gih\" -g -O2 -MT
command.o -MD -MP -MF ".deps/command.Tpo" -c -o command.o command.c; then
mv -f ".deps/command.Tpo" ".deps/command.Po"; else rm -f
".deps/command.Tpo"; exit 1; fi
In file included from command.c:74:
gp_hist.h:66:31: error: readline/history.h: No such file or directory
In file included from command.c:81:
readline.h:51:32: error: readline/readline.h: No such file or directory
command.c: In function 'rlgets':
command.c:2412: error: invalid type argument of '->'
command.c:2414: error: 'HIST_ENTRY' undeclared (first use in this function)
command.c:2414: error: (Each undeclared identifier is reported only once
command.c:2414: error: for each function it appears in.)
command.c:2414: error: 'removed' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.



On Dec 10, 2007 3:59 PM, Giles Bowkett <gilesb@gmail.com> wrote:

> Seems like there are so many options a survey of available options
> would be valuable.
>
> --
> Giles Bowkett
>
> Podcast: http://hollywoodgrit.bl...
> Blog: http://gilesbowkett.bl...
> Portfolio: http://www.gilesg...
> Tumblelog: http://giles....
>
>

Joel VanderWerf

12/10/2007 9:56:00 PM

0

Suraj Kurapati wrote:
> Victor Reyes wrote:
>> TimeStamp: No need for explanation here.
>> Server: This will always be a two digits number.
>> Function: This will be a string.
>> R/T(MS): This will a a response time given in milliseconds.
>
> Looks like a standard time-series graph to me.

There's also RRD tool (and the ruby bindings, which are on rubyforge
somewhere), but I don't know about running it on AIX.

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407