Hi Barry:  There is a routine in PDL::Graphics::PLplot which does just 
this.  I originally used it to plot a world map from a coastline database.

This is from the test suite for PDL::Graphics::PLplot:

# test of lines with gaps
$pl = PDL::Graphics::PLplot->new (DEV => $dev,
                                   FILE => "test7.$dev");
$x  = sequence(10);
$y  = $x**2;
$x->inplace->setbadat(5); # insert gap
$y->inplace->setbadat(5); # insert gap
$pl->xyplot($x, $y, PLOTTYPE => 'LINE');
$pl->close;

So, just use the 'xyplot' routine to plot a line, but insert gaps in the 
line using BAD values.

Regards,

   Doug Hunt


[email protected]
Software Engineer
UCAR - COSMIC, Tel. (303) 497-2611

On Tue, 6 Jul 2010, Barry Hall wrote:

> I need to plot something on the order of  25k line segments in a
> single plot -- just to get a quick look at some GIS data -- is there a
> routine in PDL that takes a line primitive of sorts?
>
> _______________________________________________
> Perldl mailing list
> [email protected]
> http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
>

_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to