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

Home » Public Forums » archive » Re: Image scrolling, displaying axes from outside the visible window
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: Image scrolling, displaying axes from outside the visible window [message #31593 is a reply to message #31576] Thu, 01 August 2002 08:01 Go to previous messageGo to previous message
Don J Lindler is currently offline  Don J Lindler
Messages: 19
Registered: April 2001
Junior Member
"Lord Fahruz" <Fahruz@hotmail.com> wrote in message
news:5f84b161.0208010010.3c7d359e@posting.google.com...
>>> I am currently trying to implement some "artifical" scrolling solution
>>> in an image window enclosed by 4 axes and wondered why I could
>>> perfectly display an image (which is than the window) with its x and y
>>> coordinates having negative values (and thus having its origin outside
>>> the window) so that it shows only partially, whereas axes can only be
>>> displayed within the window frame invariably even if one tries to plot
>>> with a position vector containing negative values.
>>
>> What!? I don't think so. But I have a very poor
>> idea of what you are trying to do from your
>> description. Can you give an example?
>
> Okay, sorry for my poor phrasing.
> Simply put: I would like to display a coordinate system with its
> origin outside the visible window when using negative values in the
> position vector.
> For example:
>
> IDL> window, /free
> IDL> x=findgen(200)*0.1
> IDL> plot, x, cos(x), /device, position=[-90,-90,200,200]
>
> When I type this I would like the lower and left axes not to be
> displayed in the window and the tickmarks to be accordingly shifted
> for the other 2 axes. However it seems that no matter what negative
> value I type in, the axes still appear at the bottom and to the left
> of the window.
>
> Thanks for your help.
>
> FM

You might consider using a pixmap which contains a larger
area than your display window. Plot your data into the
pixmap and the copy the portion you want into the
display window. To scroll, just copy another area without
replotting the data.

IDL> x = findgen(200)*0.1
IDL> window, 20, xsize=1000, ysize=1000, /pixmap
IDL> plot, x, cos(x), position=[100,100,600,600], /device
IDL> window, 21, xsize=600, ysize=500
IDL> device, copy=[200,200,600,500,0,0,20]

Good Luck,
Don
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: integer?
Next Topic: Re: saving variables between calls to a procedure?

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

Current Time: Sat Oct 11 06:16:22 PDT 2025

Total time taken to generate the page: 1.67863 seconds