Is there a Ruby utility for graphing?

V

Victor Reyes

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
 
S

SunRaySon

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.
 
S

Suraj Kurapati

Victor said:
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?
 
S

Stanislav Sedov

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
 
A

ara.t.howard

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
http://rubyforge.org/projects/tioga/

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

a @ http://codeforpeople.com/
 
E

Edwin Van leeuwen

Suraj said:
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/
 
V

Victor Reyes

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/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.
 
J

Joel VanderWerf

Suraj said:
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.
 
L

Lorenzo E. Danielsson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top