Is there a Ruby utility for graphing?

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

You mean something like this:
http://nubyonrails.com/pages/gruff

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

Kiran.

Victor R. 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/index.html

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

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?

Suraj K. wrote:

Victor R. 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/index.html

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

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/tioga.html

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.rubyforge.org/

Edwin Van leeuwen wrote:

Suraj K. 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/tioga.html

It produces pdf figures, I use it to create final figures for
publication.

Thank you! Tioga was exactly the project I was thinking of. :slight_smile:

Suraj K. wrote:

Victor R. 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.

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

Does anyone on this list know?
tioga

http://www.kitp.ucsb.edu/~paxton/tioga.html
http://rubyforge.org/projects/tioga/

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

a @ http://codeforpeople.com/

On Tue, Dec 11, 2007 at 04:44:30AM +0900 Suraj K. 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/tioga.html

From: Stanislav S. [mailto:[email protected]]

Tioga?

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

indeed. i think Vincent frequents this list.

He’s a debian developer, and one may just easily apt his qt4 ruby
bindings, tioga, and ruby-full (just one apt to ruby them all)
http://vincent.fourmond.neuf.fr/debian.html

kind regards -botp

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


Giles B.

Podcast: http://hollywoodgrit.blogspot.com
Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com

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/projects/gnuplot"
-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/projects/gnuplot"
-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/projects/gnuplot"
-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/projects/gnuplot"
-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/projects/gnuplot"
-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/projects/gnuplot"
-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 Tue, 2007-12-11 at 06:23 +0900, Victor R. wrote:

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

Looks like you are missing the readline header files.

Lorenzo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs