comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: help with clipping in IDL V3.0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: help with clipping in IDL V3.0 [message #3341 is a reply to message #3340] Thu, 08 December 1994 09:37 Go to previous messageGo to previous message
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
stpat@lepvax.gsfc.nasa.gov (Patti Twigg) writes:

> Hi! I am trying to get my program to ignore any points outside
> of the plot window, but based on my reading of the manual,
> this seems to be impossible - there seems to be only 2 choices:
> 1) clip plot to axis, where point outside is joined to first
> point inside starting at the axis, and 2) point outside is
> joined with line extending beyond the axis. I hope maybe I
> missed something in the manual - is there any way to get
> the plot to ignore points outside the axes?? (In Version 1.0,
> there was an option to do this, called IGNORE).

Normal IDL plots are clipped correctly with no problem.
To see this generate some data:

a=findgen(50)*144/!radeg
r=findgen(50)*10
x=r*cos(a)
y=r*sin(a)
plot,x,y,xran=[-200,200],yran=[-200,200]

What may be confusing is that PLOTS, unlike PLOT, does not
by default clip to the plot window. To see this:

erase
plots, x, y

Setting the NOCLIP keyword to 0, NOCLIP=0, enables clipping
(you might expect to do /CLIP, but CLIP is used to set the
clipping window (which defaults to the plot window)).

erase
plots,x,y,noclip=0

Take a loop at the keywords NOCLIP and CLIP.

Ray Sterner sterner@tesla.jhuapl.edu
The Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
WWW Home page: ftp://fermi.jhuapl.edu/www/s1r/people/res/res.html
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Using C++ programs with IDL
Next Topic: IDL Memory ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Nov 28 13:11:47 PST 2025

Total time taken to generate the page: 0.39905 seconds