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

Home » Public Forums » archive » Making a square plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Making a square plot [message #11005] Mon, 23 February 1998 00:00
Carsten Dominik is currently offline  Carsten Dominik
Messages: 45
Registered: February 1998
Member
Why do simple things turn out diffcult in IDL, sometimes?

I am trying to make a plot with a square plot window. It has to be
square since it is a map and the map data is a square matrix.

Here is what I did.


!p.charsize = 2
!p.charthick = 3
!p.thick= 3
!x.thick = 3
!y.thick = 3

[...]

set_plot,'ps'
device,xsize=10,ysize=10
contour,a,levels=x,/follow,min_value=-19,c_charsize=1.5,c_ch arthick=3
device,/close
set_plot,'x'
end


If I am not mistaken, it should give me a 10cm by 10cm plot. However,
I get 9.5x10.8 or something along those lines. Sure I can fiddle with
xsize and ysize until it fits, but there should be a better way.
Which? What am I doing wrong?

Thanks in advance.

- Carsten

--
Carsten Dominik <dominik@strw.LeidenUniv.nl> \ _ /
Sterrewacht, P.O. Box 9513 |X| _
NL-2300 RA Leiden (The Netherlands) /| |\ _ _ _/ \
phone +31 (71) 527-5812; FAX +31 (71) 527-5819 ___|o|____/ ~~ \___/ ~~~~~
[Message index]
 
Read Message
Previous Topic: Procedure shade_surface
Next Topic: Re: Modulo in IDL

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

Current Time: Sun Oct 12 09:16:45 PDT 2025

Total time taken to generate the page: 1.03446 seconds