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

Home » Public Forums » archive » doing !p.multi shade_surf plots in a page
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
doing !p.multi shade_surf plots in a page [message #4099] Mon, 24 April 1995 00:00
lucio is currently offline  lucio
Messages: 5
Registered: December 1993
Junior Member
I am fighting to get three isometric plots (I would like to plot a-b, a
and a+b in the same page with the same scaling, where a and b are 256x256
arrays).

I can do ONE plot as I wish using the default scaling as :

set_plot,'ps'
shade_surf,a.data > 0.90,ax=60,az=45,zrange=[0.90,1.10]

The X and Y axes appear at +/- 45 from the horizontal and have the same
aspect ratio, as it should be.


I can do three plots side by side as contour maps doing

set_plot,'ps'
device,/landscape
device,xoffset=6,yoffset=28.5,xsize=27.5,ysize=9
!p.multi=[0,3,1,0,0]
contour,(a.data-b.data) > 0.90,levels=lev,c_colors=col,c_labels=lab
contour, a.data > 0.90,levels=lev,c_colors=col,c_labels=lab
contour,(a.data+b.data) > 0.90,levels=lev,c_colors=col,c_labels=lab

The choice of offsets and sizes is such that I get three plots with
aspect ratio as close to unity as I can get, ganged horizontally.


Now I thought to do

set_plot,'ps'
device,/landscape
device,xoffset=6,yoffset=28.5,xsize=27.5,ysize=9
!p.multi=[0,3,1,0,0]
shade_surf,(a.data-b.data) > 0.90,ax=60,az=45,zrange=[0.90,1.10]
shade_surf, a.data > 0.90,ax=60,az=45,zrange=[0.90,1.10]
shade_surf,(a.data+b.data) > 0.90,ax=60,az=45,zrange=[0.90,1.10]

But I get that the plots are "squeezed", the x and y axes do not form
equal angles with the horizontal, and the x-axes is much longer than
the y-axes.

How can I produce three plots (ganged horizontally or vertically in an A4
page) with the same aspect ratio as the SINGLE shade_surf plot ?

------------------------------------------------------------ ----------------
A member of G.ASS : Group for Astronomical Software Support
------------------------------------------------------------ ----------------
Lucio Chiappetti - IFCTR/CNR | Ma te' vugl' da' quost avis a ti' Orsign
via Bassini 15 - I-20133 Milano | Buttet rabios intant te se' pisnign
Internet: LUCIO@IFCTR.MI.CNR.IT |
Decnet: IFCTR::LUCIO | (Rabisch, II 46, 119-120)
------------------------------------------------------------ ----------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Q: Lat/Lon to gridpoint interpolation
Next Topic: Arrows in IDL

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

Current Time: Fri Oct 10 06:28:21 PDT 2025

Total time taken to generate the page: 0.79771 seconds