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
 Legend for single column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

alaudo

Germany
Posts

Posted - 09/28/2005 :  2:57:23 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have data from 3 groups pooled into one worksheet (Label, X, Y, Yerr). I'd like to produce the bar plot with bars of 3 differnt colors.
I usually produce a single bar plot and change the colors of individual columns, it is fine with me. But then I can't generate the legend -- the color bar in the legend has only the base color.
How can I overcome this problem?

Alexander.

Mike

USA
357 Posts

Posted - 09/28/2005 :  3:12:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alexander:

It isn't clear to me how you have your data arranged in the worksheet. Normally, when we speak of a "group" in Origin, we refer to multiple Y datasets plotted against a single X dataset -- in which case color will automatically increment by dataset. Also, the legend should automatically register each dataset in the "group."

Perhaps I misunderstood what you are trying to do?

Mike
OriginLab
Go to Top of Page

alaudo

Germany
Posts

Posted - 09/28/2005 :  6:16:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have 3 columns of Data in my worksheet:
X Y Yerr
0.2% 0.19851 0.09534
2% 0.20019 0.08379
20% 0.20534 0.0679
0.2% 0.2893 0.00895
2% 0.26571 0.12146
20% 0.35783 0.02742
0.2% 0.20345 0.08572
1% 0.17394 0.08989
2% 0.33923 0.00852
5% 0.37789 0.0285
20% 0.16507 0.06993

The data in these 3 columns represent experimental data from 3 differrent substances, applied in different concentration, so there are basically three groups here:

---- 1st group ------
0.2% 0.19851 0.09534
2% 0.20019 0.08379
20% 0.20534 0.0679
---- 2nd group ------
0.2% 0.2893 0.00895
2% 0.26571 0.12146
20% 0.35783 0.02742
---- 3rd group ------
0.2% 0.20345 0.08572
1% 0.17394 0.08989
2% 0.33923 0.00852
5% 0.37789 0.0285
20% 0.16507 0.06993


I want to plot these data as bar plot, where every group has its own color. Should I somehow rearrange the data? The problem ist the 3rd group, there I have more concentrations and can't pool data in 3 columns :(

Is it clear now?

Alexander.

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/28/2005 :  8:30:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Alexander,

Not sure this is exactly what you want, but you can use multiple X axes to group your data as shown in Data2. Then select the entire worksheet and create a bar plot like Graph1.






Mike Buess
Origin WebRing Member
Go to Top of Page

alaudo

Germany
Posts

Posted - 09/29/2005 :  06:58:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I need the following graph:



in this graph I manually changed the colors of all columns --> I can't get the legend.
Is there a way to get legend for customly colored columns?

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/29/2005 :  08:41:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Create two empty Y columns (E and F in Data2) and add them to the plot. Then select Graph > New Legend and adjust the plot colors and legend text.

...Column D is used to index the fill colors in col B. (You don't have to do it manually.)





Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/29/2005 08:45:10 AM
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