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
 How to make column/bar plot upside down
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

diandian23

4 Posts

Posted - 07/28/2009 :  10:13:25 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): v7.0220(B220) SR0
Operating System: Windows XP

Hi folks, how do you put a column/bar plot upside down? I'm trying to plot precipitation as column/bar on the top. I flip the vertical scale (for example, plot from 1 to 0 rather than 0 to 1). The precip does go to the top, but the side effect is that it actually fills up the area outside the bar instead of inside the bar. So my plot looks like no color inside the bar and all black elsewhere.

Am I doing wrong, or is there any other solutions? Thanks in advance.

Leo_Li

China
Posts

Posted - 08/04/2009 :  09:07:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
not sure, how about using negative "Y" values?

Leo
Go to Top of Page

larry_lan

China
Posts

Posted - 08/04/2009 :  11:21:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Looks like there is no direct way. I try again and again...... Thanks for Leo's hint, now we have a workaround:

1. With this sample data (Note that I have turn all Y values into negative), highlight column A & B and plot a bar graph, we will get a "normal" plot:



2. Invert the From and To value for Y axis:



3. Set the X axis at where Y=0:



4. Use column C as the tick labels:



Done



Thanks
Larry

Edited by - larry_lan on 08/04/2009 11:25:35 AM
Go to Top of Page

rlewis

Canada
253 Posts

Posted - 08/04/2009 :  11:33:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The simplest way to achieve this is to issue the LabTalk command "layer.y.reverse=1"
Go to Top of Page

larry_lan

China
Posts

Posted - 08/04/2009 :  11:44:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Oh my god! That's wonderful. Thanks a lot Lewis.

Larry

Edited by - larry_lan on 08/04/2009 11:44:25 AM
Go to Top of Page

diandian23

4 Posts

Posted - 08/04/2009 :  11:54:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by rlewis

The simplest way to achieve this is to issue the LabTalk command "layer.y.reverse=1"




I'm not an Origin expert. How could I execute this LabTalk command?
Go to Top of Page

rlewis

Canada
253 Posts

Posted - 08/05/2009 :  01:13:34 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
(1) Prepare your Column/bar graph as "normal"
(2) Open the Script window (Window -> Script Window) from the Origin Menu
(3) Click on the Graph layer containing the Column/bat graph to ensure that it is the active layer
(4) Type "layer.y.reverse=1" into the script window and press enter
Go to Top of Page

diandian23

4 Posts

Posted - 08/05/2009 :  01:36:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by rlewis

(1) Prepare your Column/bar graph as "normal"
(2) Open the Script window (Window -> Script Window) from the Origin Menu
(3) Click on the Graph layer containing the Column/bat graph to ensure that it is the active layer
(4) Type "layer.y.reverse=1" into the script window and press enter



It works like a charm. Many many thanks rlewis! I wish this command could appear in the toolbar or options. At least in my area (hydrology), precipitation needs to be plotted on the top as columns very often.

Anyway thanks all for your kind help~
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