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
 Color map a subset of plotted data

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
Neena1695 Posted - 07/21/2021 : 3:57:37 PM
Origin Ver: Origin Pro 2021

How to color map a subset of plotted data?



Many thanks,
Neena
8   L A T E S T    R E P L I E S    (Newest First)
Neena1695 Posted - 07/22/2021 : 3:30:18 PM
Thank you Snow! Origin is so powerful!
snowli Posted - 07/22/2021 : 09:53:50 AM
Hello,

Please try the attached opju
https://my.originlab.com/ftp/forum_and_kbase/Images/Nterm1_mod.opju

Basically we added formula in Column E and F to calculate the range value in col(E), then use table() to read its corresponding color code and put it to column F. color code in F matches the corresponding x & y in column A&B.

BTW, not sure why you set column D as categorical, i turn it off so it's treated as number.


Thanks, Snow
Neena1695 Posted - 07/21/2021 : 5:37:50 PM
https://my.originlab.com/ftp/forum_and_kbase/Images/Nterm1.opju
snowli Posted - 07/21/2021 : 5:21:11 PM
Do you mind sharing the opju so i can see how many regions u want to color differently.

Thanks, Snow
Neena1695 Posted - 07/21/2021 : 5:13:38 PM
Hi Snow,

I have 1500 data points to color in that plot; selecting those regions would be time consuming. Any other suggestion?

Thank you again,
Neena
snowli Posted - 07/21/2021 : 4:57:43 PM
That's why i am wondering if u can use Cluster gadget on graph for it.
Once u plot graph, u can use cluster gadget to color a subset of data region.

It seems only some subregion in D is set to 5. So u can use cluster gadget to select the region and color it differently from other parts.

Thanks, Snow
Neena1695 Posted - 07/21/2021 : 4:54:42 PM
Hi Snow,

Sorry, let me clarify.

I do not have values in Column D (color map category) corresponding to every row in column A and B.

Is this possible to achieve color mapping this way?

Thanks,
Neena
snowli Posted - 07/21/2021 : 4:00:41 PM
Sorry, maybe i don't fully understand your question.
Do u mean for every 200 points of plot, u want to color it based on info. in column D.

If so, you may have to make a new column with color for each row of value in column A&B.

Maybe you can use Cluster gadget with line plot.
Select the subrange u want to color. Click Create Categories button. set Category=2. Check color it by category.
Repeat it for all subranges u want to color.

Thanks, Snow

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