@@ -361,7 +361,7 @@ Example:
361361 - mesh of surface
362362
363363Note: a mesh is defined by two sets of lines at
364- right-angles (i.e. this is how is differs from
364+ right-angles (i.e. this is how it differs from
365365line3d).
366366
367367See module documentation for more information on
@@ -526,6 +526,25 @@ value using the set_color_table function.
526526
527527Implemented by L<PDL::Graphics::TriD::Contours> .
528528
529+ =head2 labels3d
530+
531+ =for ref
532+
533+ Labels at specified 3D coordinates.
534+
535+ Implemented by L<PDL::Graphics::TriD::Labels> .
536+
537+ =for usage
538+
539+ labels3d ndarray(3,x), {OPTIONS}
540+ labels3d [CONTEXT], {OPTIONS}
541+
542+ =for example
543+
544+ Example:
545+
546+ pdl> $coords = yvals(3)->append(zeroes 2); labels3d $coords, {Strings=>[0..2]}
547+
529548=head2 hold3d, release3d
530549
531550=for ref
@@ -709,7 +728,7 @@ use PDL::Exporter;
709728use PDL::Core ' ' ; # barf
710729our @ISA = qw/ PDL::Exporter/ ;
711730our @EXPORT_OK = qw/ imag3d_ns imag3d line3d mesh3d lattice3d points3d
712- trigrid3d trigrid3d_ns line3d_segs
731+ trigrid3d trigrid3d_ns line3d_segs labels3d
713732 contour3d spheres3d describe3d imagrgb imagrgb3d hold3d release3d
714733 keeptwiddling3d nokeeptwiddling3d close3d
715734 twiddle3d grabpic3d tridsettings/ ;
@@ -868,13 +887,21 @@ sub PDL::imagrgb {
868887
869888# Plotting routines that use the 3D graph
870889
890+ *labels3d=*labels3d=\&PDL::labels3d;
891+ sub PDL ::labels3d {
892+ &checkargs;
893+ my $obj = PDL::Graphics::TriD::Labels-> new(@_ );
894+ print " labels3d: object is $obj \n " if $PDL::Graphics::TriD::verbose ;
895+ graph_object($obj );
896+ }
897+
871898# Call: line3d([$x,$y,$z],[$color]);
872899*line3d=*line3d=\&PDL::line3d;
873900sub PDL ::line3d {
874- &checkargs;
875- my $obj = PDL::Graphics::TriD::LineStrip-> new(@_ );
876- print " line3d: object is $obj \n " if ($PDL::Graphics::TriD::verbose );
877- graph_object($obj );
901+ &checkargs;
902+ my $obj = PDL::Graphics::TriD::LineStrip-> new(@_ );
903+ print " line3d: object is $obj \n " if ($PDL::Graphics::TriD::verbose );
904+ graph_object($obj );
878905}
879906
880907*line3d_segs=*line3d_segs=\&PDL::line3d_segs;
0 commit comments