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

Home » Public Forums » archive » Re: Image in postscript
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: Image in postscript [message #20393] Tue, 20 June 2000 00:00
pit is currently offline  pit
Messages: 92
Registered: January 1996
Member
In article <394E32B8.607171A4@chu-caen.fr>,
Blanchet Eric <blanchet-e@chu-caen.fr> writes:
> Hello,
>
>
> I have some problems to create a postscript file.
> we want to display an image whose dimensions are
> equal but even if I set the xsize and ysize keywords
> with the same value, i obtain a rectangular image.

That is due to the settings of !x.margin and !y.margin.

> what can i do to obtain a square image ?

Either set !x.margin and !y.margin to equal values or use the approach
Liam suggested.

Peter

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Dr. Peter "Pit" Suetterlin http://www.astro.uu.nl/~suetter
Sterrenkundig Instituut Utrecht
Tel.: +31 (0)30 253 5225 P.Suetterlin@astro.uu.nl
____________________________________________________________ ______________
Re: Image in postscript [message #20404 is a reply to message #20393] Mon, 19 June 2000 00:00 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Blanchet Eric wrote:
> I have some problems to create a postscript file.
> we want to display an image whose dimensions are
> equal but even if I set the xsize and ysize keywords
> with the same value, i obtain a rectangular image.
>
> what can i do to obtain a square image ?

Try using IMDISP to display your image:
http://cimss.ssec.wisc.edu/~gumley/imdisp.html

IMDISP automatically maintains the aspect ratio of your image. You can
also specify an aspect ratio via the ASPECT keyword.

Cheers,
Liam.
http://cimss.ssec.wisc.edu/~gumley
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cool and Bizzare error in IDL 5.2.1
Next Topic: Re: using TVRD on idl 5.1

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

Current Time: Wed Oct 08 17:44:09 PDT 2025

Total time taken to generate the page: 0.00212 seconds