The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Swapping positions of an x and y axis

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
ucfahmg Posted - 11/19/2012 : 1:17:16 PM
Apologies as this is very basic but on a 2D line and symbol graph I am trying to change my x and y axis. My graphs are displaying what I want but I am looking at the change in temp (y) over a depth profile (x) and it is typical that the depth is usually shown on the y access from 0 downwards as if you were looking at the water column. Is there any way in which to flip the x and y positions - if I try and alter the data in any other way - it doesn't show me what I want.
1   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 11/20/2012 : 11:56:33 AM
On the Graph menu, there is an Exchange X-Y axis option. You can edit the scale (Format : Axes : X Axis) so From is greater than To get the depth to go 'down'.

Programmatically, this is done with Layer properties.

If the graph layer in question is active ..
layer.EXCHANGEXY = 1; // Exchanges X and Y
layer.REVERSE = 1; // Results in x scale going down

or the more general case ..
Graph2!layer2.EXCHANGEXY = 1;
Graph2!layer2.REVERSE = 1;

See the Layer Object help for additional properties

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000