DOKK / manpages / debian 12 / pdl / PDL::Graphics::TriD::Graph.3pm.en
TriD::Graph(3pm) User Contributed Perl Documentation TriD::Graph(3pm)

PDL::Graphics::TriD::Graph - PDL 3D graph object with axes

  use PDL::Graphics::TriD;
  use PDL::Graphics::TriD::Graph;
  $g = PDL::Graphics::TriD::Graph->new;
  $g->default_axes;
  $g->add_dataseries(PDL::Graphics::TriD::Lattice->new($y,$c), "lat0");
  $g->bind_default("lat0");
  $g->add_dataseries(PDL::Graphics::TriD::LineStrip->new($y+pdl(0,0,1),$c), "lat1");
  $g->bind_default("lat1");
  $g->scalethings;
  $win = PDL::Graphics::TriD::get_current_window();
  $win->clear_objects;
  $win->add_object($g);
  $win->twiddle;
2023-04-27 perl v5.36.0