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 #94121 is a reply to message #94116] Sat, 21 January 2017 08:12 Go to previous messageGo to previous message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
On Friday, January 20, 2017 at 12:09:18 PM UTC-6, wlandsman wrote:
> 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:
>>>
>>
>> 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

Good call Wayne. But, Barplot does have a horizontal property that rotates, i.e. produces horizontal bars, similar to David's cgHistoplot:

x = randomn(1l, 1000)
h = HISTOGRAM(x, BINSIZE=0.1, LOCATIONS=loc)
bp = barplot(loc, h)
bp.horizontal = 1
[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 11:42:32 PDT 2025

Total time taken to generate the page: 0.00456 seconds