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

Home » Public Forums » archive » Re: printing IDLgrScene
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: printing IDLgrScene [message #44213] Sun, 29 May 2005 23:46
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Soren wrote:
> Hey Antonio,
> Thanks for your answer.
> I worked it out using the normalized coordinates. It was a bit of a
> hazzle calculating everything in normalized coords by accounting for
> both the aspect ratio of the image and that of the printer page, but
> now it works.
>
> Thanks
>
> Soren
>

I don't know if you know it but IDL has the NORM_COORD function that
scales [min,max] values between [0,1], and also exist other more usefull
routine from David Fanning called NORMALIZED that normalizes the values
between any other values: [0,1] or [-1,1] or anyone.

Bye.

--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
Re: printing IDLgrScene [message #44218 is a reply to message #44213] Fri, 27 May 2005 13:53 Go to previous message
newsgroupie2003 is currently offline  newsgroupie2003
Messages: 12
Registered: December 2004
Junior Member
Hey Antonio,
Thanks for your answer.
I worked it out using the normalized coordinates. It was a bit of a
hazzle calculating everything in normalized coords by accounting for
both the aspect ratio of the image and that of the printer page, but
now it works.

Thanks

Soren


Antonio Santiago <d6522117@est.fib.upc.es> wrote in message news:<d726l1$ejg$1@defalla.upc.es>...
> Soren wrote:
>> Hello,
>> Thanks for the answers to my previous question on the colorbar. I
>> ended up usings Davids due to the easy range specification.
>>
>> I haven't been able to find any good solutions as to how to print a
>> IDLgrScene object (while easily controlling position and scaling). It
>> seems the examples found on this newsgroup and in the IDL
>> documentation aims at controlling views.
>>
>> I have a scene consisting of 1) an image montage and 2) a colorbar.
>> Is the only good way to print such a scene really to scale and
>> translate the models of each view? It seems like a lot of work.
>>
>> I tried drawing to the IDLgrBuffer with the aim of gathering the two
>> views in either an image object (via read() ) or a matrix (via
>> image_data prop) but resampling issues destroy the axis legends.
>>
>> Any hints appreciated!
>>
>>
>> Soren
>
> (Sorry for my poor english, I don't understand very well.)
>
> Try with IDLgrPrinter if you want to print your graphics to a printer
> device.
> Otherwise (if I am mistaking) try to normalize your coordenates so that
> your image and colorbar are put on the appropiate positions.
>
> Sorrr, if this is an stupid answer :)
>
>
> --
> -----------------------------------------------------
> Antonio Santiago P�rez
> ( email: santiago<<at>>grahi.upc.edu )
> ( www: http://www.grahi.upc.edu/santiago )
> ( www: http://asantiago.blogsite.org )
> -----------------------------------------------------
> GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
> Universitat Polit�cnica de Catalunya
> -----------------------------------------------------
Re: printing IDLgrScene [message #44237 is a reply to message #44218] Wed, 25 May 2005 08:46 Go to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Soren wrote:
> Hello,
> Thanks for the answers to my previous question on the colorbar. I
> ended up usings Davids due to the easy range specification.
>
> I haven't been able to find any good solutions as to how to print a
> IDLgrScene object (while easily controlling position and scaling). It
> seems the examples found on this newsgroup and in the IDL
> documentation aims at controlling views.
>
> I have a scene consisting of 1) an image montage and 2) a colorbar.
> Is the only good way to print such a scene really to scale and
> translate the models of each view? It seems like a lot of work.
>
> I tried drawing to the IDLgrBuffer with the aim of gathering the two
> views in either an image object (via read() ) or a matrix (via
> image_data prop) but resampling issues destroy the axis legends.
>
> Any hints appreciated!
>
>
> Soren

(Sorry for my poor english, I don't understand very well.)

Try with IDLgrPrinter if you want to print your graphics to a printer
device.
Otherwise (if I am mistaking) try to normalize your coordenates so that
your image and colorbar are put on the appropiate positions.

Sorrr, if this is an stupid answer :)


--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL calling a Fortran routines
Next Topic: Logging system utility

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

Current Time: Wed Oct 08 19:57:08 PDT 2025

Total time taken to generate the page: 0.00576 seconds