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

Home » Public Forums » archive » Re: How to rotate a figure in PLOT?
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: How to rotate a figure in PLOT? [message #48564] Sun, 30 April 2006 20:45
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Caitouer writes:

> I still do not figure out how to solve this. Hopefully
> I could get some hints here.
> I set my output as 'ps'. I want to plot three plots
> in one page. Here is the basic idea:
>
> ------------------------------------------------------------ --
> set_plot,'ps'
> device,filename=..., /landscape
>
> ;plot the first figure
>
> plot, x1, y1, position=[0.0,0.0,0,7,0.7]
>
> ;plot the second figure: histogram of x1
>
> plot, x1, PSYM=10, position=[0.0,0.71,0.7,1.0]
>
> ;plot the third figure: histogram of y1
> ;I HAVE BIG PROBLEMS HERE.

You have big problems before you get to here, but
no matter. I'd try something like this (taken from
one of my programs):

pos = [0.1, 0.1, 0.75, 0.75]
Plot, x1, y1, Position=pos, XStyle=1, YStyle=1

h = Histogram(x1)
Plot, Indgen(N_Elements(h)), h, XStyle=1, /NoErase, $
Position=[pos[0], pos[3]+0.05, pos[2], pos[3]+0.225]

h = Histogram(y1)
Plot, h, Indgen(N_Elements(h)), YStyle=1, /NoErase, XStyle=1, $
Position=[pos[2]+0.05, pos[1], pos[2]+0.225, pos[3]]

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Map Projection Knowledge Growing Exponentially
Next Topic: map_set stereographic projection

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

Current Time: Wed Oct 08 17:41:40 PDT 2025

Total time taken to generate the page: 0.00504 seconds