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
 assigning color code for values

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
balasubramanian Posted - 08/03/2008 : 10:05:16 AM
Dearies,
My X values are numeric and continuous like 1,2,3,.....5000. For every X value, i have Y value which is a single character either O/G/A/B etc. Now i have to make a plot by giving a color code for each character in Y.

For example white for O,
green for G,
red for A etc.
Kindly write me how to do it in origin.


Thanks in advance,
Bala
1   L A T E S T    R E P L I E S    (Newest First)
Deanna Posted - 08/03/2008 : 11:35:56 PM
Hi Bala,

You can first set the Y column as categorical data and then create a scatter plot from it. To assigne different colors for different characters, you can use the Plot Details dialog.

For example, you have your X data in Column 1 and Y data (characters) in Column 2. In Column 3, we put numbers indicating colors. Here , 1 is for black, 2 is for red... We do the following to create a plot:
1. Highlight the second column. Right-click and select '''Set as Categorical''' from the short-cut menu to set this column as categorical data.
2. Create scatter plot by selecting Plot: Symbol: Scatter from the Origin menu.
3. Double-click on the plot to open the Plot Details dialog. Select the data plot of the left (expand the layer or page branch if necessary). On the right panel, make the Symbol tab active. Click the Symbol Color button, and then select Indexing: Col (c) to map the symbol colors to values in column C.



Deanna
OriginLab Technical Services

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