Jaya has asked for the wisdom of the Perl Monks concerning the following question:

I like to know if there is any module to plot "points" in three dimensional space.

I have a hash of array of arrays,

key 0 :
(xvalue,yvalue,zvalue)
(xvalue,yvalue,zvalue)
...................
key 1 :
(xvalue,yvalue,zvalue)
..................

Now I have to plot these points with each group having a different color. And I am stuck here. I looked at the GD::Graph and could not find any.

  • Comment on Representing points in three dimensional

Replies are listed 'Best First'.
Re: Representing points in three dimensional
by kvale (Monsignor) on Mar 17, 2005 at 23:49 UTC
    The module PDL::Graphics::TriD, part of PDL, has a 3-D plotting capability using OpenGL (other formats are possible). This plots points on a surface:
    perldl> points3d [sqrt(rvals(zeroes(50,50))/2)];

    -Mark

      Thank You.

      I looked in CPAN and I understand that I have to install PDL and PDL::Graphics::TriD source code. But I could not find PDL::Graphics source code to proceed installing PDL::Graphics::TriD

      Does this mean that I have to install PDL and then go ahead and install TriD?

Re: Representing points in three dimensional
by jweed (Chaplain) on Mar 17, 2005 at 23:28 UTC
      you meant PDL::Graphics::TriD?