Hi Robert: In PDL::Graphics::PLplot if 'badvals' are enabled, you can omit bad values. So you might be able to do something like:

$pl = PDL::Graphics::PLplot->new (DEV => "png", FILE => "test.png");
$y1 = $y->setbadif($y > 5000);
$pl->xyplot($x, $y1, PLOTTYPE => 'POINTS');
$pl->close;

Regards,

  Doug

[EMAIL PROTECTED]
Software Engineer III
UCAR - COSMIC, Tel. (303) 497-2611

On Thu, 14 Dec 2006, Robert Cumming wrote:

Is there a nice pdl way to do something like this?

points ($x,$y) if ($y > 5000); # doesn't work

In other words, I want to plot only points whose coordinates fulfil a
certain condition.  This is a feature I've used in sm.

Robert
--
Robert Cumming, Stockholms observatorium
http://www.astro.su.se/

_______________________________________________
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