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 "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
prev sibling 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