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
 Color map a subset of plotted data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Neena1695

Canada
117 Posts

Posted - 07/21/2021 :  3:57:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver: Origin Pro 2021

How to color map a subset of plotted data?



Many thanks,
Neena

snowli

USA
1411 Posts

Posted - 07/21/2021 :  4:00:41 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Neena1695

Canada
117 Posts

Posted - 07/21/2021 :  4:54:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/21/2021 :  4:57:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Neena1695

Canada
117 Posts

Posted - 07/21/2021 :  5:13:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/21/2021 :  5:21:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Do you mind sharing the opju so i can see how many regions u want to color differently.

Thanks, Snow
Go to Top of Page

Neena1695

Canada
117 Posts

Posted - 07/21/2021 :  5:37:50 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
https://my.originlab.com/ftp/forum_and_kbase/Images/Nterm1.opju
Go to Top of Page

snowli

USA
1411 Posts

Posted - 07/22/2021 :  09:53:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Neena1695

Canada
117 Posts

Posted - 07/22/2021 :  3:30:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Snow! Origin is so powerful!
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