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
 Column Plot: negative bars that shouldn't be there

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
kemcelroy Posted - 12/17/2004 : 4:32:00 PM
Origin Version (Select Help-->About Origin): 7SR4
Operating System: Windows XP

I have created a column graph and broken up the data into three sets, plotted as layers. Dataset one is rows 1 through 8 and is plotted in layer 1. Dataset 2 is rows 9-16 in layer 2 and dataset 3 is rows 17-24 in layer 3.

Layer 1 looks fine. Layers 2 and 3 are plotting from negative infinity, it seems. For example, if the y-axis is scaled from -20 to +200, there is nothing plotted below the x-axis in layer 1, as expected since there are no negative numbers in rows 1 to 8. However, layer 2 and 3's all of the columns extend below the x-axis. The only negative numbers which should be plotted are a -11 and a -2 in layer 3. In this case, the bar for the x value corresponding to -11 extends from -20 (the bottom of the plot) to -11, while the bar for the x value corresponding to -2 in layer 3 extends from -20 to -2 (instead of from -11 to 0 and -2 to 0, respectively). For all of the positive values, the columns extend from -20 to +n, where n is the positive value. Here is the plot I get:



Layers 2 and 3 are linked 1:1 to the Y-axis of Layer1 and custom scaled to the X-axis.

Has anyone come across this prolem and do you know a fix?
3   L A T E S T    R E P L I E S    (Newest First)
kemcelroy Posted - 01/13/2005 : 3:44:59 PM
Thanks for the tip, Laurie. Changing the x-axis from bottom to 0 fixed the problem.
Laurie Posted - 12/22/2004 : 09:58:06 AM
My guess is that layer 2 and 3 do not have their X axis positioned at Y=0. If you open the X Axis dialog for Layer 2 and then for Layer3, I bet that on the Title&Format tab, the Axis Position is Bottom, compared with at 0 for the X axis in layer 1, the visible X axis on your graph. (I assume that you hid the axes for layers 2 and 3).

OriginLab Technical Support
Mike Posted - 12/21/2004 : 10:12:28 AM
Hi kemcelroy,

It isn't clear to me why you would bother trying to plot your data in three separate layers; generally, you wouldn't need to do so unless you had widely differing data values or you were plotting against multiple independent variables (either would necessitate use of different Y scales) or you wanted to combine different graph types in a single graph (say, a column graph and a line graph).

How about just breaking your data set into three Y columns of data, selecting all three Y columns, then plotting as a simple column graph? Once plotted, you can customize fills and patterns to suit you.



I hope this helps.

Mike
OriginLab

Edited by - Mike on 12/21/2004 11:57:16 AM

Edited by - Mike on 12/22/2004 09:25:08 AM

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