www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Is there a graphing library for D?

reply "dcoder" <dcoder nowhere.com> writes:
I'm looking for a graphing library for D.  Preferrably, something 
that uses Qt, but it doesn't have to.  I am plotting sonar data, 
and I need to plot it 'live' so... I need something that is:

1. simple to use.  I just want to graph x,y data.
2. ability to scale the display.
3. displaying more than one curve on the same graph.
4. Allows for animation of data.  So, suppose I graph curve 1.
    Now I tell the library, okay data for curve 1 has been changed,
    please refresh graph.  In this manner, I can move an object, 
and
    see the reflection in 'real time'.

    Real time in my case would be 10-30ms.

Does such a library exist?  I click the library section on this 
site, and nothing  stood out.

thanks.
Jul 17 2012
next sibling parent reply "cal" <callumenator gmail.com> writes:
On Tuesday, 17 July 2012 at 17:42:49 UTC, dcoder wrote:
 I'm looking for a graphing library for D.  Preferrably, 
 something that uses Qt, but it doesn't have to.  I am plotting 
 sonar data, and I need to plot it 'live' so... I need something 
 that is:

 1. simple to use.  I just want to graph x,y data.
 2. ability to scale the display.
 3. displaying more than one curve on the same graph.
 4. Allows for animation of data.  So, suppose I graph curve 1.
    Now I tell the library, okay data for curve 1 has been 
 changed,
    please refresh graph.  In this manner, I can move an object, 
 and
    see the reflection in 'real time'.

    Real time in my case would be 10-30ms.

There is this, but I have not used it personally: https://github.com/dsimcha/Plot2kill Note: GTK or DFL for the display backend
Jul 17 2012
parent Jordi Sayol <g.sayol yahoo.es> writes:
Al 17/07/12 19:53, En/na cal ha escrit:
 On Tuesday, 17 July 2012 at 17:42:49 UTC, dcoder wrote:
 I'm looking for a graphing library for D.  Preferrably, something that uses
Qt, but it doesn't have to.  I am plotting sonar data, and I need to plot it
'live' so... I need something that is:

 1. simple to use.  I just want to graph x,y data.
 2. ability to scale the display.
 3. displaying more than one curve on the same graph.
 4. Allows for animation of data.  So, suppose I graph curve 1.
    Now I tell the library, okay data for curve 1 has been changed,
    please refresh graph.  In this manner, I can move an object, and
    see the reflection in 'real time'.

    Real time in my case would be 10-30ms.

There is this, but I have not used it personally: https://github.com/dsimcha/Plot2kill

...and there are plot2kill binary deb packages for debian, ubuntu, linuxmint, etc. at: https://code.google.com/p/d-apt/wiki/APT_Repository -- Jordi Sayol
Jul 17 2012
prev sibling parent reply "Agnew Daniel" <kaibush89 yahoo.com> writes:
I know I am too late, as you know best thing always delay. So 
visit KoolChart to find best chart library.
Oct 14 2013
parent =?UTF-8?B?UmFwaGHDq2wgSmFrc2U=?= <raphael.jakse gmail.com> writes:
Le 14/10/2013 14:10, Agnew Daniel a écrit :
 I know I am too late, as you know best thing always delay. So visit
 KoolChart to find best chart library.

This has nothing to do with D. It is for the Web, and it's not free. I take this message as an ad, I don't think it is the good place for this. I hate ads, especially where they are not expected, and the best thing to fight again them might be to show a free product which does better than the advertised product. Those interested in charts and pies in html5 might be interested in taking a look at http://www.flotcharts.org/ Sorry for the off topic.
Oct 14 2013