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
 newbie question on simple 2D plots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

forshaw

UK
Posts

Posted - 03/09/2004 :  04:11:56 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am getting to grips with Origin 7.5 and have been frustrated by not being able to select and plot more than one subset of data in a single worksheet (e.g. by click and drag) onto the same axes. For example I have a single data file with n subsets of data - I want to plot the each of these subsets on the same axes using different symbols for each subset. I have tried "click & drag", and "add plot to layer" and "plot setup". All seem to baulk when I try to plot the second subset of data - the grtaph window blinks but no data appear.
I appreciate I could write a C routine to do this for me but suspect there must be a way to do this!
Hope someone can help!

cpyang

USA
1406 Posts

Posted - 03/09/2004 :  05:01:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin does not support plotting the same column into the same graph layer, which I suspect is what you are trying to do. You will need to add a second layer, or use another column to specify the symbols for your subsets. For example, the following data will plot the same column using two different symbols,



A(x) B(y) C(y)
1 10 1
2 11 1
3 12 0
4 13 0
5 14 2
6 16 2



if you plot col(B) and choose from Plot Details to use Col(C) as your symbol shape.

CP




Edited by - cpyang on 03/09/2004 05:03:00 AM
Go to Top of Page

forshaw

UK
Posts

Posted - 03/09/2004 :  05:41:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks CP. You have understood my problem and saved me time trying to find a solution. Is there an easy way to create a layer which has axes labels which are identical to (i.e. on top of) the previous layer? Perhaps it is easiest for me to write analysis code?
Go to Top of Page

Mike

USA
357 Posts

Posted - 03/09/2004 :  3:57:01 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
CP is suggesting that you use the values in a data set -- in this case Col(C) -- to determine your symbol color, shape, etc. So, for example, using CP's data set:

A(X)	B(Y)	C(Y)
1 10 1
2 11 1
3 12 0
4 13 0
5 14 2
6 15 2


1. Select Col(B) and create your 2D plot (symbol or line+symbol -- won't work with line plot).
2. From the menu, choose Format:Plot.
3. On the Symbol tab, click the Symbol Color button, then choose Indexing: Col (C).
-> Symbol color for data point i in Col(B) is now determined by the color index value in row i of Col(C).

4. To set symbol shape or fill by data set, select the Show Construction check box and choose a data set from the Shape or Interior drop down lists.

For more information, please see these Origin 7. 5 Help file topics:
>> Using Data Sets as a Plotting Enhancement
>> Using Values in a Data Set to Control Data Plot Color

I hope this helps.

Mike Genthner
Documentation Specialist
OriginLab

Edited by - Mike on 03/09/2004 4:06:02 PM

Edited by - Mike on 03/09/2004 4:14:10 PM

Edited by - Mike on 03/11/2004 09:20:07 AM
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 03/09/2004 :  9:49:27 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Is there an easy way to create a layer which has axes labels which are identical to (i.e. on top of) the previous layer?



You can add new layer to your graph from the Edit Menu, and adding Top X will create a new layer that has X axis linked to the previous. In general, you can open the Layer properties from Plot Details and setup linking of one layer to another, and using Straight Link will allow tick labels to be identical to its parent.

CP


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