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/
|