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

Home » Public Forums » archive » Orientation of 2-d 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
Re: Orientation of 2-d plot [message #94116 is a reply to message #94109] Fri, 20 January 2017 10:09 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Friday, January 20, 2017 at 10:24:54 AM UTC-5, Phillip Bitzer wrote:
> On Thursday, January 19, 2017 at 7:17:54 PM UTC-6, Phillip Reid wrote:
>> Hello,
>> I'm trying to make a plot that is oriented at 90degrees to another plot on the same page.
>> A command something like:
>>
>> plot,time,variable,position=position,orient=90
>>
>> would do the trick - only "orient" isn't a keyword.
>>
>> Any idea how this might be done?
>> Thanks greatly.
>> Phil
>
> Just swap your variables:
> t= LINDGEN(50)-25
> x = t^2
>
> p = PLOT(t, x, LAYOUT=[2, 1, 1])
> p2 = PLOT(x, t, LAYOUT=[2, 1, 2], /CURRENT)

This works for most plots but won't if you are using BARPLOT() or creating a filled histogram plot. David Fanning's CGHISTOPLOT for direct graphics has a /ROTATE keyword (with an example in his plot gallery http://www.idlcoyote.com/gallery/) to rotate a filled histogram. Internally his program has to use a lot of calls to PLOTS to emulate a rotated filled histogram. --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Looping through arrays
Next Topic: VELOVECT Procedure

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

Current Time: Wed Oct 08 14:07:44 PDT 2025

Total time taken to generate the page: 0.00184 seconds