Best way to implement animated chart in ruby

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

Thanks alot!

···

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

Diego Bernardes wrote:

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

If you're up for JRuby, there may be Swing components you could use.

Look at the Monkeybars lib for building GUI apps in JRuby.

···

--
James Britt

www.jamesbritt.com - Playing with Better Toys
www.ruby-doc.org - Ruby Help & Documentation
www.rubystuff.com - The Ruby Store for Ruby Stuff
www.neurogami.com - Smart application development

Diego Bernardes wrote:

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

Thanks alot!

How about generating SVG (which is just xml) and displaying it using a browser. You could use just webrick to generate the pages.

Have you looked at ruby-gnome2? You may be able to use the same
underlying components that Gnome System Monitor does?

http://ruby-gnome2.sourceforge.jp/

···

On Mon, Aug 3, 2009 at 9:26 PM, Diego Bernardes<di3go.bernardes@gmail.com> wrote:

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

One of the ex-seattle.rb members did some REALLY pretty realtime full screen graphics stuff using cairo and ruby back in the day. It used continuations and all sorts of stuff that went over my head. What didn't go over my head was the pretty and the slick.

That was back in 2002 or so... so I can't find it... but rcairo should be able to meet your needs just fine.

···

On Aug 3, 2009, at 18:26 , Diego Bernardes wrote:

I need to implement a animated chart in ruby, im using gtk.
Anyone have a idea?
The animation, needs to be smooth.

Cairo? RMagick(too slow to draw a chart 30 times a second)? any other
plot gem? anyone know one?

About web i can't, it need to be a desktop application, because the
integration with os.

The perfect example for what i need is gnome system monitor charts.

Jruby, maybe one alternative, need look a bit.

The application is to monitor some applications the company i work has
in the intranet.

This is why i need the animated charts.

···

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

Diego,
I've done a real-time updating chart that shows bandwidth usage and other information from a satellite modem using bar graphs. In the app there are 4 panels, and 8 bars per graphs. Each graph shows a 'peak' (a line showing the highest the bar has ever been). Some bars have different colors, and all of them have a slight beveled border around them. On top of that the bars gradually step to their desired values so they don't just jump erratically.

I suppose I'm trying to paint a picture that shows a lot going on at once - The JRuby + Monkeybars route was worked pretty well for us and our client.

Logan Barnett
logustus@gmail.com
http://www.logustus.com

···

On Aug 4, 2009, at 7:15 AM, Diego Bernardes wrote:

About web i can't, it need to be a desktop application, because the
integration with os.

The perfect example for what i need is gnome system monitor charts.

Jruby, maybe one alternative, need look a bit.

The application is to monitor some applications the company i work has
in the intranet.

This is why i need the animated charts.