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

Home » Public Forums » archive » Clipping IDLgrPolyLine objects?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Clipping IDLgrPolyLine objects? [message #13844] Thu, 17 December 1998 00:00 Go to previous message
dEdmundson is currently offline  dEdmundson
Messages: 23
Registered: February 1998
Junior Member
I've created my own Plot2D object that contains axes and
any number of line plots. The user sets the axes range
via a keyword parameter. Plots are then added via an
object method, e.g.

p = Obj_New('Plot2D', xrange=[0.0,50.0], yrange=[-0.5,0.5])
x=findgen(100)
p->addplot,x,sin(x)

The problem is that the polyline object is not clipped to
the box defined by the Plot2D range. If x spans a larger
range (as it does above), the line crosses the boundary.
While I can deal with clipping at the x endpoints easily
enough, I can't think of a simple way to clip pieces of
the polyline that go over the top or bottom. Is there
a simple method of clipping polylines?

Cheers,
Darran.



-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Double Slider
Next Topic: Re: Keeping rotated plots the same size

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

Current Time: Fri Oct 10 12:00:43 PDT 2025

Total time taken to generate the page: 8.08249 seconds