Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Rotating pl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 5402 of 6247
Post > Topic >>

Re: Rotating plot

by David Fanning <news@[EMAIL PROTECTED] > Feb 6, 2008 at 06:23 PM

hazel writes:

> Hi all,
> 
> I have question pertaining to a  'would like to have - I'm sure IDL
> does it somehow' plot format.
> 
> I would like to plot 2 plots side by side (I can do this).
> 
> The first is Plot, x, y. The second is a histogram of number of
> samples vs. y which I would like to rotate so that the y axes of both
> plots are aligned.
> 
> I'm currently doing:
> 
> !P.MULTI=[0,2,1]
> set_plot, 'ps'
> 
> DEVICE,FILENAME='plot.ps',/landscape, XSIZE=24.0, YSIZE=10.0, /cm
> ; translation
> and ;counterclockwise rotation about the z axis
> plot,x, y
> 
> HIST_PLOT, y  ;  (Thank-you, Liam - a lifesaver)
> 
> (Within which:
> 
> plot, x,y, /T3D)
> 
> 
> But my plot rotates correctly but looks very squashed and elongated,
> yet I've not touched the dimensions of the plot (to my knowledge).

You are asking too much of !P.MULTI. It needs you to
leave *everything* up to it. When you throw T3D in
there, you totally screw up the system variables 
!P.MULTI requires. You will want to position your
plots with the position keywords and NOERASE. Leave
!P.MULTI out of it. :-)

Something like this:

data = fix(randomu(seed, 100) * 10)
plot, data, position=[0.1, 0.1, 0.6, 0.9]
T3D, /RESET, TRANS=[0.0, -1.0, 0.0], ROT=[0,0,90] 
plot, histogram(data), /noerase, $
   position = [0.1, 0.1, 0.9, 0.3], /T3D

I couldn't find Liam's Hist_Plot. Have you seen my
HistoPlot? 

   IDL> Histoplot, Fix(RandomU(seed, 200)*20), $
            POLYCOLOR=['charcoal', 'steel blue'], /FILLPOLYGON

You can find more about it here:

   http://www.dfanning.com/graphics_tips/histoplot.html

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 2 Posts in Topic:
Rotating plot
hazel <hazel.kenyon@[E  2008-02-06 15:59:22 
Re: Rotating plot
David Fanning <news@[E  2008-02-06 18:23:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Oct 10 13:32:35 CDT 2008.