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

Home » Public Forums » archive » Re: Rubberband box for object graphics
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: Rubberband box for object graphics [message #42526 is a reply to message #42525] Sat, 12 February 2005 10:22 Go to previous messageGo to previous message
Chris Lee is currently offline  Chris Lee
Messages: 101
Registered: August 2003
Senior Member
In article <MPG.1c77cfaadd9ea45b98990b@news.frii.com>, "David Fanning"
<davidf@dfanning.com> wrote:


> Christopher Lee writes:
>
>> This will draw a direct graphics plot for you of the zoomed region.
> This is what you might call, literally, thinking outside the box. I
> wonder if it is what the original poster has in mind. :-) Cheers,
> David

Well...that's just as doable. Now that I actually tried to run zplot,
just change the PLOT command to a command to recalculate the axis and
plot, e.g. (where oxrange is the default xrange which gets re-used for a single
click with no drag along the x axis., and position is the position
keyword in xplot)

if(xr[0] eq xr[1]) then xr=info.oxrange

xs2=Normalize(xr, Position=[info.position[0], info.position[2]])
info.thisPlot->setproperty, xrange=xr, xcoord_conv=xs2
info.xAxis1->setproperty,range=xr,/exact, xcoord_conv=xs2
info.thisWindow->Draw, info.plotView

;;
You'd also need recompute=2 on the XTICK text object to make the font
stay pretty. It works like zplot, without the overlay graphics during the
drag phase..

It also needs some code to stop you zooming in too far, like zplot,
the axis drawing breaks down after a while.

Chris.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how to create IDL batch job in window?
Next Topic: Draw Widget Type Field

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

Current Time: Sat Oct 11 07:11:55 PDT 2025

Total time taken to generate the page: 0.23650 seconds