T O P I C R E V I E W |
diandian23 |
Posted - 07/28/2009 : 10:13:25 PM 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. |
7 L A T E S T R E P L I E S (Newest First) |
diandian23 |
Posted - 08/05/2009 : 01:36:02 AM 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~ |
rlewis |
Posted - 08/05/2009 : 01:13:34 AM (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 |
diandian23 |
Posted - 08/04/2009 : 11:54:27 PM 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? |
larry_lan |
Posted - 08/04/2009 : 11:44:09 AM Oh my god! That's wonderful. Thanks a lot Lewis.
Larry |
rlewis |
Posted - 08/04/2009 : 11:33:10 AM The simplest way to achieve this is to issue the LabTalk command "layer.y.reverse=1"
|
larry_lan |
Posted - 08/04/2009 : 11:21:53 AM 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 |
Leo_Li |
Posted - 08/04/2009 : 09:07:30 AM not sure, how about using negative "Y" values?
Leo |