views:

72

answers:

1

I feel like I have a simple desire that no one can satisfy: I want to be able to graph a set of points, and I am using Ruby 1.9.2.

I would like to use Gruff or Scruffy, since these seem to be the easiest to use. However, they both rely on rmagick, and it seems that many other libraries do to. Rmagick isn't compatible with Ruby 1.9 though. (not to mention, I've read that you should just stay away from it anyways...I would enjoy hearing reasons)

I am using wxRuby for a project, but in the future I will be needing simple graphs in other places, such as online and just command line scripts. Therefore, if someone has a solution for wxRuby, that is great, but an all-encompassing solution would be even better.

Thank you!

P.S. I've seen gnuplot, but it would be a bit overkill. If that's my best option, I can live with that. I've also seen RGL, but I didn't look too long at it.

EDIT: Just to add, neither Gruff or Scruffy have been updated since August 2009, and I would like to find something that is at least semi-maintained. SVG::Graph looks very powerful, but hasn't been updated since Sept. '09. There is a fork of it on rubygems though which says it is 1.9 compatible, maybe I will try that if I can't get Scruffy or Gruff to play nice.

A: 

There may be some wx lib you could use.

Barring that I use rmagick with 1.9 (what's your platform?)

and it appears there have been some updates to those gems, though not new releases in awhile.

http://ruby-toolbox.com/categories/graphing.html

rogerdpack
I'm on Windows. I've seen the link you gave before, but I never checked the Git for any of them. I notice Gruff has been updated last month. I just found an example of using wx to open .png and .jpeg files, so maybe I can scrape by on it for now. I got SVG::Graph to output SVG for me, but I can't really figure out how to use it with anything.
phoffer
yeah rmagick works ok here on 1.9 http://betterlogic.com/roger/?p=2186
rogerdpack