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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Swapping positions of an x and y axis
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ucfahmg

United Kingdom
4 Posts

Posted - 11/19/2012 :  1:17:16 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

greg

USA
1378 Posts

Posted - 11/20/2012 :  11:56:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - greg on 11/20/2012 12:00:44 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000