Another way of doing this is to say:
$i = which ($y>5000);
points($x($i), $y($i));
If this doesn't work then you either need to 'use PDL::NiceSlice;' or
use the more-verbose
points($x->index($i), $y->index($i));
Doug
On Dec 14, 2006, at 4:48 AM, Karl Glazebrook wrote:
points($x->where($y>5000), $y->where($y>5000));
On 14/12/2006, at 8:39 PM, 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
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl